Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Return value of Senti\Bundle\MainBundle\I18n\LocaleMapping::getLocale() must be an instance of Senti\Bundle\MainBundle\I18n\Model\Locale, boolean returned in /var/www/html/senti/src/Senti/Bundle/MainBundle/I18n/LocaleMapping.php:50 Stack trace: #0 /var/www/html/senti/src/Senti/Bundle/MainBundle/Listener/LocaleListener.php(28): Senti\Bundle\MainBundle\I18n\LocaleMapping->getLocale(Object(Symfony\Component\HttpFoundation\Request)) #1 /var/www/html/senti/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(214): Senti\Bundle\MainBundle\Listener\LocaleListener->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)) #2 /var/www/html/senti/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'kernel.re in /var/www/html/senti/src/Senti/Bundle/MainBundle/I18n/LocaleMapping.php on line 50