PHP Class eZ\Publish\Core\MVC\Symfony\EventListener\SiteAccessMatchListener

Should be triggered as early as possible.
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство Type Description
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$siteAccessRouter eZ\Publish\Core\MVC\Symfony\SiteAccess\Router

Méthodes publiques

Méthode Description
__construct ( Router $siteAccessRouter, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Symfony\Component\HttpFoundation\RequestMatcherInterface $userContextRequestMatcher )
getSubscribedEvents ( )
onKernelRequest ( GetResponseEvent $event )

Private Methods

Méthode Description
getSiteAccessFromRequest ( Request $request ) : SiteAccess

Method Details

__construct() public méthode

public __construct ( Router $siteAccessRouter, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Symfony\Component\HttpFoundation\RequestMatcherInterface $userContextRequestMatcher )
$siteAccessRouter eZ\Publish\Core\MVC\Symfony\SiteAccess\Router
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$userContextRequestMatcher Symfony\Component\HttpFoundation\RequestMatcherInterface

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )

onKernelRequest() public méthode

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

Property Details

$eventDispatcher protected_oe property

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher
Résultat Symfony\Component\EventDispatcher\EventDispatcherInterface

$siteAccessRouter protected_oe property

protected Router,eZ\Publish\Core\MVC\Symfony\SiteAccess $siteAccessRouter
Résultat eZ\Publish\Core\MVC\Symfony\SiteAccess\Router