src/Sulu/Bundle/WebsiteBundle/EventListener/RouterListener.php
public function onKernelRequest(GetResponseEvent $event)
    {
        $request = $event->getRequest();

        // This call is required in all cases, because the default router needs our webspace information
        // Would be nice to also only call this if the _requestAnalyzer attribute is set, but it's set on the next line
        $this->requestAnalyzer->analyze($request);
        $this->baseRouteListener->onKernelRequest($event);
        if (false !== $request->attributes->get(static::REQUEST_ANALYZER, true)) {
            $this->requestAnalyzer->validate($request);
        }
    }
public function onKernelRequest(GetResponseEvent $event)
    {
        $request = $event->getRequest();

        // This call is required in all cases, because the default router needs our webspace information
        // Would be nice to also only call this if the _requestAnalyzer attribute is set, but it's set on the next line
        $this->requestAnalyzer->analyze($request);
        $this->baseRouteListener->onKernelRequest($event);
        if (false !== $request->attributes->get(static::REQUEST_ANALYZER, true)) {
            $this->requestAnalyzer->validate($request);
        }
    }
public function onKernelRequest ( GetResponseEvent $ event ) { $ request = $ event -> getRequest ( ) ; // This call is required in all cases, because the default router needs our webspace information // Would be nice to also only call this if the _requestAnalyzer attribute is set, but it's set on the next line $ this -> requestAnalyzer -> analyze ( $ request ) ; $ this -> baseRouteListener -> onKernelRequest ( $ event ) ; if ( false !== $ request -> attributes -> get ( static :: REQUEST_ANALYZER , true ) ) { $ this -> requestAnalyzer -> validate ( $ request ) ; } }
Analyzes the request before passing the event to the default RouterListener from symfony and validates the result
afterwards.

@param GetResponseEvent $event
Analyzes the request before passing the event to the default RouterListener from symfony and validates the result afterwards .