PHP Class Contao\CoreBundle\EventListener\StoreRefererListener

Inheritance: use trait Contao\CoreBundle\Framework\ScopeAwareTrait
Show file Open project: contao/core-bundle Class Usage Examples

Protected Properties

Property Type Description
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface

Public Methods

Method Description
__construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface $authenticationTrustResolver ) Constructor.
onKernelResponse ( FilterResponseEvent $event ) Stores the referer in the session.

Private Methods

Method Description
canModifyBackendSession ( Request $request ) : boolean Checks if the back end session can be modified.
canModifyFrontendSession ( Request $request, array $referer = null ) : boolean Checks if the front end session can be modified.
getRelativeRequestUri ( Request $request ) : string Returns the current request URI relative to the base path.
prepareBackendReferer ( string $refererId, array $referers = null ) : array Prepares the back end referer array.
storeBackendReferer ( Request $request ) Stores the back end referer.
storeFrontendReferer ( Request $request ) Stores the front end referer.

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface $authenticationTrustResolver )
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$authenticationTrustResolver Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface

onKernelResponse() public method

Stores the referer in the session.
public onKernelResponse ( FilterResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterResponseEvent

Property Details

$tokenStorage protected property

protected TokenStorageInterface,Symfony\Component\Security\Core\Authentication\Token\Storage $tokenStorage
return Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface