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