PHP 클래스 Contao\CoreBundle\EventListener\UserSessionListener

상속: use trait Contao\CoreBundle\Framework\ScopeAwareTrait
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Doctrine\DBAL\Connection $connection, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface $authenticationTrustResolver ) Constructor.
onKernelRequest ( GetResponseEvent $event ) Replaces the current session data with the stored session data.
onKernelResponse ( FilterResponseEvent $event ) Writes the current session data to the database.

비공개 메소드들

메소드 설명
getSessionBag ( ) : Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface Returns the session bag.
getUserObject ( ) : FrontendUser | BackendUser | null Returns the user object depending on the container scope.

메소드 상세

__construct() 공개 메소드

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

onKernelRequest() 공개 메소드

Replaces the current session data with the stored session data.
public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

onKernelResponse() 공개 메소드

Writes the current session data to the database.
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