Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function connectCheckAction(Request $request): Response |
||
34 | { |
||
35 | // If we didn't log in, something went wrong. Throw an exception! |
||
36 | if (!$this->getUser()) { |
||
37 | $response = $this->render('bundles/TwigBundle/Exception/error403.html.twig'); |
||
38 | $response->setStatusCode(403); |
||
39 | |||
40 | return $response; |
||
41 | } |
||
42 | |||
43 | return $this->redirectToRoute('homepage'); |
||
44 | } |
||
45 | } |
||
46 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.