From: Raphaƫl Gertz Date: Mon, 28 Dec 2020 07:42:11 +0000 (+0100) Subject: Cleanup X-Git-Tag: 0.1.7~20 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/0f8cc46f1169f98720bfd1acba71da5e40d1c3bd Cleanup --- diff --git a/EventSubscriber/LocaleSubscriber.php b/EventSubscriber/LocaleSubscriber.php index 29417a7..2d25ba6 100644 --- a/EventSubscriber/LocaleSubscriber.php +++ b/EventSubscriber/LocaleSubscriber.php @@ -51,18 +51,6 @@ class LocaleSubscriber implements EventSubscriberInterface { //Set back router context $this->router->setContext($context); - //Generate current route with preferred language - //XXX: may trigger a Symfony\Component\Routing\Exception\RouteNotFoundException if route is not found for preferred locale - /*$uri = $this->router->generate( - //Current route - $request->get('_route'), - //Force preferred locale - ['_locale' => $preferred]+$request->get('_route_params') - ); - - //Regenerate route with preferred locale - $event->setResponse(new RedirectResponse($uri, 302));*/ - //End process return; }