1 | <?php |
||
23 | final class ModerateCommentAction |
||
24 | { |
||
25 | /** |
||
26 | * @var RouterInterface |
||
27 | */ |
||
28 | private $router; |
||
29 | |||
30 | /** |
||
31 | * @var BlogInterface |
||
32 | */ |
||
33 | private $blog; |
||
34 | |||
35 | /** |
||
36 | * @var CommentManagerInterface |
||
37 | */ |
||
38 | private $commentManager; |
||
39 | |||
40 | /** |
||
41 | * @var HashGeneratorInterface |
||
42 | */ |
||
43 | private $hashGenerator; |
||
44 | |||
45 | public function __construct( |
||
56 | |||
57 | /** |
||
58 | * @param string $commentId |
||
59 | * @param string $hash |
||
60 | * @param string $status |
||
61 | * |
||
62 | * @throws AccessDeniedException |
||
63 | * |
||
64 | * @return RedirectResponse |
||
65 | */ |
||
66 | public function __invoke($commentId, $hash, $status) |
||
88 | } |
||
89 |