| 1 | <?php |
||
| 19 | final class StartAuthAction |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var AuthServiceInterface |
||
| 23 | */ |
||
| 24 | private $authService; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var RouterInterface |
||
| 28 | */ |
||
| 29 | private $router; |
||
| 30 | |||
| 31 | public function __construct(AuthServiceInterface $authService, RouterInterface $router) |
||
| 36 | |||
| 37 | public function __invoke(): RedirectResponse |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Generates a URL from the given parameters. |
||
| 46 | * |
||
| 47 | * @param string $route The name of the route |
||
| 48 | * @param array $parameters An array of parameters |
||
| 49 | * @param int $referenceType The type of reference (one of the constants in UrlGeneratorInterface) |
||
| 50 | * |
||
| 51 | * @return string The generated URL |
||
| 52 | */ |
||
| 53 | private function generateUrl(string $route, array $parameters = [], int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH): string |
||
| 57 | } |
||
| 58 |