1 | <?php |
||
26 | final class CheckAuthAction implements LoggerAwareInterface |
||
27 | { |
||
28 | use LoggerAwareTrait; |
||
29 | |||
30 | /** |
||
31 | * @var RouterInterface |
||
32 | */ |
||
33 | private $router; |
||
34 | |||
35 | /** |
||
36 | * @var FacebookConnection |
||
37 | */ |
||
38 | private $facebookConnection; |
||
39 | |||
40 | /** |
||
41 | * @var SessionManager |
||
42 | */ |
||
43 | private $sessionManager; |
||
44 | |||
45 | /** |
||
46 | * CheckAuthAction constructor. |
||
47 | * |
||
48 | * @param RouterInterface $router |
||
49 | * @param FacebookConnection $facebookConnection |
||
50 | * @param SessionManager $sessionManager |
||
51 | */ |
||
52 | public function __construct( |
||
61 | |||
62 | /** |
||
63 | * @param Request $request |
||
64 | * |
||
65 | * @return Response |
||
66 | */ |
||
67 | public function __invoke(Request $request): Response |
||
86 | |||
87 | /** |
||
88 | * Returns a RedirectResponse to the given route with the given parameters. |
||
89 | * |
||
90 | * @param string $route The name of the route |
||
91 | * @param array $parameters An array of parameters |
||
92 | * @param int $status The status code to use for the Response |
||
93 | * |
||
94 | * @return RedirectResponse |
||
95 | */ |
||
96 | private function redirectToRoute($route, array $parameters = [], $status = 302): RedirectResponse |
||
100 | |||
101 | /** |
||
102 | * Generates a URL from the given parameters. |
||
103 | * |
||
104 | * @param string $route The name of the route |
||
105 | * @param array $parameters An array of parameters |
||
106 | * @param int $referenceType The type of reference (one of the constants in UrlGeneratorInterface) |
||
107 | * |
||
108 | * @return string The generated URL |
||
109 | */ |
||
110 | private function generateUrl($route, array $parameters = [], $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH): string |
||
114 | } |
||
115 |