public function onKernelRequest(GetResponseEvent $event) {

        $this->setRequest($event->getRequest());

        // Register the theme providers.
        $this->getThemeManager()->addGlobal();

        return $event;
    }
public function onKernelRequest(GetResponseEvent $event) {

        $this->setRequest($event->getRequest());

        // Register the theme providers.
        $this->getThemeManager()->addGlobal();

        return $event;
    }
public function onKernelRequest ( GetResponseEvent $ event ) { $ this -> setRequest ( $ event -> getRequest ( ) ) ; // Register the theme providers. $ this -> getThemeManager ( ) -> addGlobal ( ) ; return $ event ; }
On kernel request.

@param GetResponseEvent $event The event.
@return GetResponseEvent Returns the event.
On kernel request .