From edc90a4f13c7ef5a88987a4d4cb9fdc692a9a0a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 25 Feb 2018 06:06:44 +0100 Subject: [PATCH] Cleanup --- Controller/DefaultController.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Controller/DefaultController.php b/Controller/DefaultController.php index b9316f2..2e72eb2 100644 --- a/Controller/DefaultController.php +++ b/Controller/DefaultController.php @@ -5,15 +5,14 @@ namespace Rapsys\BlogBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { - /** - * Redirect on first supported language version - */ + //Redirect on first supported language version public function rootAction() { //Set default locale $locale = 'en'; //Supported application languages - $supportedLanguage = explode('|', $this->getParameter('blog.locales')); + //XXX: Array for route validation is not supported by default (rapsys patch) + $supportedLanguage = $this->getParameter('blog.locales'); //Language list if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { -- 2.41.1