Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function set() on null in /home/gutura1rz/public_html/src/AppBundle/EventListener/LocaleListener.php:22 Stack trace: #0 /home/gutura1rz/public_html/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(212): AppBundle\EventListener\LocaleListener->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)) #1 /home/gutura1rz/public_html/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'kernel.request', Object(Symfony\Component\HttpKernel\Event\GetResponseEvent)) #2 /home/gutura1rz/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(127): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.request', Object(Symfony\Component\HttpKernel\Event\GetResp in /home/gutura1rz/public_html/src/AppBundle/EventListener/LocaleListener.php on line 22