PHP Class Sulu\Bundle\WebsiteBundle\EventListener\RouterListener

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Datei anzeigen Open project: sulu/sulu

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\EventListener\RouterListener $baseRouterListener, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer )
getSubscribedEvents ( )
onKernelFinishRequest ( Symfony\Component\HttpKernel\Event\FinishRequestEvent $event ) Simply pass the event to the route listener, because we have nothing to add here.
onKernelRequest ( GetResponseEvent $event ) Analyzes the request before passing the event to the default RouterListener from symfony and validates the result afterwards.

Method Details

__construct() public method

public __construct ( Symfony\Component\HttpKernel\EventListener\RouterListener $baseRouterListener, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer )
$baseRouterListener Symfony\Component\HttpKernel\EventListener\RouterListener
$requestAnalyzer Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

onKernelFinishRequest() public method

Simply pass the event to the route listener, because we have nothing to add here.
public onKernelFinishRequest ( Symfony\Component\HttpKernel\Event\FinishRequestEvent $event )
$event Symfony\Component\HttpKernel\Event\FinishRequestEvent

onKernelRequest() public method

Analyzes the request before passing the event to the default RouterListener from symfony and validates the result afterwards.
public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent