| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function handle(Request $request, int $type = self::MASTER_REQUEST, bool $catch = true): Response |
||
| 17 | { |
||
| 18 | /** @var Environment $twig */ |
||
| 19 | $twig = $this->getContainer()->get('twig'); |
||
| 20 | Assert::isInstanceOf($twig, Environment::class); |
||
| 21 | |||
| 22 | return new Response( |
||
| 23 | $twig->render( |
||
| 24 | 'index.html.twig', |
||
| 25 | [ |
||
| 26 | 'request' => $request, |
||
| 27 | 'showLanguages' => $request->query->get('show-languages'), |
||
| 28 | ] |
||
| 38 |