@@ 28-40 (lines=13) @@ | ||
25 | /** @var string */ |
|
26 | private $redirectRoute; |
|
27 | ||
28 | public function __construct( |
|
29 | UserRepository $userRepository, |
|
30 | FlashBagInterface $flashBag, |
|
31 | TranslatorInterface $translator, |
|
32 | Router $router, |
|
33 | string $redirectRoute |
|
34 | ) { |
|
35 | $this->userRepository = $userRepository; |
|
36 | $this->flashBag = $flashBag; |
|
37 | $this->translator = $translator; |
|
38 | $this->router = $router; |
|
39 | $this->redirectRoute = $redirectRoute; |
|
40 | } |
|
41 | ||
42 | public function toggleAction(int $id): RedirectResponse |
|
43 | { |
@@ 36-50 (lines=15) @@ | ||
33 | /** @var string */ |
|
34 | private $redirectRoute; |
|
35 | ||
36 | public function __construct( |
|
37 | FormFactoryInterface $formFactory, |
|
38 | DeleteUserHandler $handler, |
|
39 | FlashBagInterface $flashBag, |
|
40 | TranslatorInterface $translator, |
|
41 | Router $router, |
|
42 | string $redirectRoute |
|
43 | ) { |
|
44 | $this->formFactory = $formFactory; |
|
45 | $this->handler = $handler; |
|
46 | $this->flashBag = $flashBag; |
|
47 | $this->translator = $translator; |
|
48 | $this->router = $router; |
|
49 | $this->redirectRoute = $redirectRoute; |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * @param Request $request |