public function onRequestEvent(GetResponseEvent $event)
 {
     if (MainKernel::skipOtherRequest($event)) {
         return true;
     }
     // Nelle richieste secondarie devo inizializzarlo uguale ma solo alcune cose (tipo il locale per esempio)
     if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
         $this->mainKernel->initSubRequest($event);
         return true;
     }
     $this->mainKernel->onRequest($event);
 }
 public function onKernelTerminateEvent(PostResponseEvent $event)
 {
     if (MainKernel::skipOtherRequest($event) || !$this->moduloManager->isEnabled()) {
         return;
     }
     $this->moduloManager->onKernelTerminate($event);
 }