From 0f8cc46f1169f98720bfd1acba71da5e40d1c3bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 28 Dec 2020 08:42:11 +0100 Subject: [PATCH 1/1] Cleanup --- EventSubscriber/LocaleSubscriber.php | 12 ------------ 1 file changed, 12 deletions(-) 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; } -- 2.41.1