PHP Класс eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener

Наследование: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

onKernelRequestForward() публичный Метод

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

onKernelRequestRedirect() публичный Метод

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.
См. также: eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter
public onKernelRequestRedirect ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent