1 | <?php |
||
24 | final class AuthSuccessAction |
||
25 | { |
||
26 | /** |
||
27 | * @var Environment |
||
28 | */ |
||
29 | private $twig; |
||
30 | |||
31 | /** |
||
32 | * @var RouterInterface |
||
33 | */ |
||
34 | private $router; |
||
35 | |||
36 | /** |
||
37 | * @var SessionManager |
||
38 | */ |
||
39 | private $sessionManager; |
||
40 | |||
41 | /** |
||
42 | * @var EventDispatcherInterface |
||
43 | */ |
||
44 | private $eventDispatcher; |
||
45 | |||
46 | /** |
||
47 | * AuthErrorAction constructor. |
||
48 | * |
||
49 | * @param Environment $twig |
||
50 | * @param RouterInterface $router |
||
51 | * @param SessionManager $sessionManager |
||
52 | * @param EventDispatcherInterface $eventDispatcher |
||
53 | */ |
||
54 | public function __construct( |
||
65 | |||
66 | /** |
||
67 | * @throws \Twig_Error_Loader |
||
68 | * @throws \Twig_Error_Runtime |
||
69 | * @throws \Twig_Error_Syntax |
||
70 | * |
||
71 | * @return Response |
||
72 | */ |
||
73 | public function __invoke(): Response |
||
96 | |||
97 | /** |
||
98 | * Returns a RedirectResponse to the given route with the given parameters. |
||
99 | * |
||
100 | * @param string $route The name of the route |
||
101 | * @param array $parameters An array of parameters |
||
102 | * @param int $status The status code to use for the Response |
||
103 | * |
||
104 | * @return RedirectResponse |
||
105 | */ |
||
106 | private function redirectToRoute($route, array $parameters = [], $status = 302): RedirectResponse |
||
110 | |||
111 | /** |
||
112 | * Generates a URL from the given parameters. |
||
113 | * |
||
114 | * @param string $route The name of the route |
||
115 | * @param array $parameters An array of parameters |
||
116 | * @param int $referenceType The type of reference (one of the constants in UrlGeneratorInterface) |
||
117 | * |
||
118 | * @return string The generated URL |
||
119 | */ |
||
120 | private function generateUrl($route, array $parameters = [], $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH): string |
||
124 | } |
||
125 |