PHP Class eZ\Bundle\EzPublishCoreBundle\EventListener\SessionSetDynamicNameListener

Allows to set a dynamic session name based on the siteaccess name.
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__construct ( eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, Symfony\Component\HttpFoundation\Session\SessionInterface $session = null, Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface $sessionStorage = null )
getSubscribedEvents ( )
onSiteAccessMatch ( PostSiteAccessMatchEvent $event )

Private Methods

Method Description
getSessionName ( string $sessionName, SiteAccess $siteAccess ) : string

Method Details

__construct() public method

public __construct ( eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, Symfony\Component\HttpFoundation\Session\SessionInterface $session = null, Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface $sessionStorage = null )
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$sessionStorage Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

onSiteAccessMatch() public method

public onSiteAccessMatch ( PostSiteAccessMatchEvent $event )
$event eZ\Publish\Core\MVC\Symfony\Event\PostSiteAccessMatchEvent