PHP 클래스 Sulu\Bundle\WebsiteBundle\EventListener\RouterListener

상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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 getSubscribedEvents ( )

onKernelFinishRequest() 공개 메소드

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() 공개 메소드

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