1 | <?php |
||
11 | final class BlockController |
||
12 | { |
||
13 | /** @var UserRepository */ |
||
14 | private $userRepository; |
||
15 | |||
16 | /** @var FlashBagInterface */ |
||
17 | private $flashbag; |
||
18 | |||
19 | /** @var TranslatorInterface */ |
||
20 | private $translator; |
||
21 | |||
22 | /** @var Router */ |
||
23 | private $router; |
||
24 | |||
25 | /** @var string */ |
||
26 | private $redirectRoute; |
||
27 | |||
28 | /** |
||
29 | * @param UserRepository $userRepository |
||
30 | * @param FlashBagInterface $flashbag |
||
31 | * @param TranslatorInterface $translator |
||
32 | * @param Router $router |
||
33 | * @param string $redirectRoute |
||
34 | */ |
||
35 | public function __construct( |
||
48 | |||
49 | public function toggleAction($id) |
||
67 | } |
||
68 |