Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getUser() on null in /var/www/espaceps/src/MDS/MonCompteBundle/EventSubscriber/Cap13MigrationSubscriber.php:57 Stack trace: #0 /var/www/espaceps/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(214): MDS\MonCompteBundle\EventSubscriber\Cap13MigrationSubscriber->onKernelControllerPre(Object(Symfony\Component\HttpKernel\Event\FilterControllerEvent), 'kernel.controll...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)) #1 /var/www/espaceps/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'kernel.controll...', Object(Symfony\Component\HttpKernel\Event\FilterControllerEvent)) #2 /var/www/espaceps/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(139): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.controll...', Object(Symfon in /var/www/espaceps/src/MDS/MonCompteBundle/EventSubscriber/Cap13MigrationSubscriber.php on line 57