PHP Class Bolt\Session\SessionListener

Author: Carson Full ([email protected])
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Afficher le fichier Open project: bolt/bolt

Protected Properties

Свойство Type Description
$options Bolt\Session\OptionsBag
$session Symfony\Component\HttpFoundation\Session\SessionInterface

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Bolt\Session\OptionsBag $options ) Constructor.
getSubscribedEvents ( )
onRequest ( GetResponseEvent $event ) Set the session ID from request cookies
onResponse ( FilterResponseEvent $event ) Add the session cookie to the response if it is started.

Méthodes protégées

Méthode Description
appendRealmToName ( Request $request )
generateCookie ( )
prependBasePathToCookie ( Request $request )

Method Details

__construct() public méthode

Constructor.
public __construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Bolt\Session\OptionsBag $options )
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$options Bolt\Session\OptionsBag

appendRealmToName() protected méthode

protected appendRealmToName ( Request $request )
$request Symfony\Component\HttpFoundation\Request

generateCookie() protected méthode

protected generateCookie ( )

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )

onRequest() public méthode

Set the session ID from request cookies
public onRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

onResponse() public méthode

Add the session cookie to the response if it is started.
public onResponse ( FilterResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterResponseEvent

prependBasePathToCookie() protected méthode

protected prependBasePathToCookie ( Request $request )
$request Symfony\Component\HttpFoundation\Request

Property Details

$options protected_oe property

protected OptionsBag,Bolt\Session $options
Résultat Bolt\Session\OptionsBag

$session protected_oe property

protected SessionInterface,Symfony\Component\HttpFoundation\Session $session
Résultat Symfony\Component\HttpFoundation\Session\SessionInterface