1 | <?php |
||
21 | final class CheckAuthAction |
||
22 | { |
||
23 | /** |
||
24 | * @var RouterInterface |
||
25 | */ |
||
26 | private $router; |
||
27 | |||
28 | /** |
||
29 | * @var SessionManagerInterface |
||
30 | */ |
||
31 | private $sessionManager; |
||
32 | |||
33 | /** |
||
34 | * @var AuthServiceInterface |
||
35 | */ |
||
36 | private $authService; |
||
37 | |||
38 | public function __construct(RouterInterface $router, SessionManagerInterface $sessionManager, AuthServiceInterface $authService) |
||
44 | |||
45 | public function __invoke(Request $request): RedirectResponse |
||
64 | |||
65 | /** |
||
66 | * Generates a URL from the given parameters. |
||
67 | * |
||
68 | * @param string $route The name of the route |
||
69 | * @param array $parameters An array of parameters |
||
70 | * @param int $referenceType The type of reference (one of the constants in UrlGeneratorInterface) |
||
71 | * |
||
72 | * @return string The generated URL |
||
73 | */ |
||
74 | private function generateUrl(string $route, array $parameters = [], int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH): string |
||
78 | } |
||
79 |