eZPublishCommunityProject  2013.6
eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener Class Reference
+ Inheritance diagram for eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener:
+ Collaboration diagram for eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener:

Public Member Functions

 __construct (ContainerInterface $container, LoggerInterface $logger=null)
 
 onKernelRequestForward (GetResponseEvent $event)
 
 onKernelRequestRedirect (GetResponseEvent $event)
 Checks if the request needs to be redirected and return a RedirectResponse in such case. More...
 
 onKernelRequestSetup (GetResponseEvent $event)
 Checks if it's needed to redirect to setup wizard. More...
 

Static Public Member Functions

static getSubscribedEvents ()
 

Private Attributes

 $container
 
 $httpKernel
 
 $logger
 
 $router
 

Constructor & Destructor Documentation

eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::__construct ( ContainerInterface  $container,
LoggerInterface  $logger = null 
)

Member Function Documentation

static eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::getSubscribedEvents ( )
static
eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestForward ( GetResponseEvent  $event)
Parameters
\Symfony\Component\HttpKernel\Event\GetResponseEvent$event
eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestRedirect ( GetResponseEvent  $event)

Checks if the request needs to be redirected and return a RedirectResponse in such case.

The request attributes "needsRedirect" and "semanticPathinfo" are originally set in the UrlAliasRouter.

Note: The event propagation will be stopped to ensure that no response can be set later and override the redirection.

Parameters
\Symfony\Component\HttpKernel\Event\GetResponseEvent$event
See Also
eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestSetup ( GetResponseEvent  $event)

Checks if it's needed to redirect to setup wizard.

Parameters
\Symfony\Component\HttpKernel\Event\GetResponseEvent$event

Member Data Documentation

eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::$container
private
eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::$httpKernel
private
eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::$logger
private
eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::$router
private

The documentation for this class was generated from the following file: