1 | <?php |
||
20 | final class StartAuthAction |
||
21 | { |
||
22 | /** |
||
23 | * @var AuthService |
||
24 | */ |
||
25 | private $authService; |
||
26 | |||
27 | /** |
||
28 | * @var RouterInterface |
||
29 | */ |
||
30 | private $router; |
||
31 | |||
32 | /** |
||
33 | * StartAuthAction constructor. |
||
34 | * |
||
35 | * @param AuthService $authService |
||
36 | * @param RouterInterface $router |
||
37 | */ |
||
38 | public function __construct(AuthService $authService, RouterInterface $router) |
||
43 | |||
44 | /** |
||
45 | * @return Response |
||
46 | */ |
||
47 | public function __invoke(): Response |
||
53 | |||
54 | /** |
||
55 | * Generates a URL from the given parameters. |
||
56 | * |
||
57 | * @param string $route The name of the route |
||
58 | * @param array $parameters An array of parameters |
||
59 | * @param int $referenceType The type of reference (one of the constants in UrlGeneratorInterface) |
||
60 | * |
||
61 | * @return string The generated URL |
||
62 | */ |
||
63 | private function generateUrl($route, array $parameters = [], $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH): string |
||
67 | } |
||
68 |