1 | <?php |
||
20 | final class StartAuthAction |
||
21 | { |
||
22 | /** |
||
23 | * @var RouterInterface |
||
24 | */ |
||
25 | private $router; |
||
26 | |||
27 | /** |
||
28 | * @var FacebookConnection |
||
29 | */ |
||
30 | private $facebookConnection; |
||
31 | |||
32 | /** |
||
33 | * @var string[] |
||
34 | */ |
||
35 | private $permissions; |
||
36 | |||
37 | /** |
||
38 | * StartAuthAction constructor. |
||
39 | * |
||
40 | * @param RouterInterface $router |
||
41 | * @param FacebookConnection $facebookConnection |
||
42 | * @param string[] $permissions |
||
43 | */ |
||
44 | public function __construct(RouterInterface $router, FacebookConnection $facebookConnection, array $permissions) |
||
50 | |||
51 | /** |
||
52 | * @return Response |
||
53 | */ |
||
54 | public function __invoke(): Response |
||
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($route, array $parameters = [], $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH): string |
||
78 | } |
||
79 |