PHP Class eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
ファイルを表示 Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__construct ( eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, Symfony\Component\Routing\RouterInterface $router, $defaultSiteAccess, Psr\Log\LoggerInterface $logger = null )
getSubscribedEvents ( )
onKernelRequestForward ( GetResponseEvent $event )
onKernelRequestRedirect ( GetResponseEvent $event ) Checks if the request needs to be redirected and return a RedirectResponse in such case.

Method Details

__construct() public method

public __construct ( eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, Symfony\Component\Routing\RouterInterface $router, $defaultSiteAccess, Psr\Log\LoggerInterface $logger = null )
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
$router Symfony\Component\Routing\RouterInterface
$logger Psr\Log\LoggerInterface

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

onKernelRequestForward() public method

public onKernelRequestForward ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

onKernelRequestRedirect() public method

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.
See also: eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter
public onKernelRequestRedirect ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent