| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | public function forcedLoginAction(Request $request) |
||
| 39 | { |
||
| 40 | $this->denyAccessUnlessGranted('ROLE_USER', null, 'Unable to access this page!'); |
||
| 41 | |||
| 42 | $user = $this->getUser(); |
||
| 43 | dump($user->getRoles()); |
||
| 44 | |||
| 45 | $this->setMenu(MNU_CACHES_SEARCH); |
||
| 46 | $this->setTitle('Symfony Controlled'); |
||
| 47 | |||
| 48 | return $this->render('default/index.html.twig', [ |
||
| 49 | 'user' => $user |
||
| 50 | ]); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.