PHP Класс Contao\CoreBundle\EventListener\StoreRefererListener

Наследование: use trait Contao\CoreBundle\Framework\ScopeAwareTrait
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface

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

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

Приватные методы

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

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

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

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() публичный Метод

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

Описание свойств

$tokenStorage защищенное свойство

protected TokenStorageInterface,Symfony\Component\Security\Core\Authentication\Token\Storage $tokenStorage
Результат Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface