1 | <?php |
||
19 | final class StartAuthAction |
||
20 | { |
||
21 | /** |
||
22 | * @var RouterInterface |
||
23 | */ |
||
24 | private $router; |
||
25 | |||
26 | /** |
||
27 | * @var Facebook |
||
28 | */ |
||
29 | private $facebookConnection; |
||
30 | |||
31 | /** |
||
32 | * @var string[] |
||
33 | */ |
||
34 | private $permissions; |
||
35 | |||
36 | /** |
||
37 | * @param string[] $permissions |
||
38 | */ |
||
39 | public function __construct(RouterInterface $router, Facebook $facebookConnection, array $permissions) |
||
45 | |||
46 | public function __invoke(): RedirectResponse |
||
56 | |||
57 | /** |
||
58 | * Generates a URL from the given parameters. |
||
59 | * |
||
60 | * @param string $route The name of the route |
||
61 | * @param array $parameters An array of parameters |
||
62 | * @param int $referenceType The type of reference (one of the constants in UrlGeneratorInterface) |
||
63 | * |
||
64 | * @return string The generated URL |
||
65 | */ |
||
66 | private function generateUrl(string $route, array $parameters = [], int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH): string |
||
70 | } |
||
71 |