PHP 클래스 Thelia\Core\EventListener\RequestListener

저자: manuel raynaud ([email protected])
상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface, use trait Thelia\Tools\RememberMeTrait
파일 보기 프로젝트 열기: thelia/thelia

보호된 프로퍼티들

프로퍼티 타입 설명
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

공개 메소드들

메소드 설명
__construct ( Thelia\Core\Translation\Translator $translator, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
checkCurrency ( GetResponseEvent $event )
getSubscribedEvents ( ) {@inheritdoc} api
jsonBody ( GetResponseEvent $event )
registerPreviousUrl ( Symfony\Component\HttpKernel\Event\PostResponseEvent $event ) Save the previous URL in session which is based on the referer header or the request, or the _previous_url request attribute, if defined.
registerValidatorTranslator ( GetResponseEvent $event )
rememberMeLoader ( GetResponseEvent $event )

보호된 메소드들

메소드 설명
applyUserLocale ( Thelia\Core\Security\User\UserInterface $user, Thelia\Core\HttpFoundation\Session\Session $session )
getRememberMeAdmin ( Thelia\Core\HttpFoundation\Request $request, Thelia\Core\HttpFoundation\Session\Session $session )
getRememberMeCustomer ( Thelia\Core\HttpFoundation\Request $request, Thelia\Core\HttpFoundation\Session\Session $session, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) : array

메소드 상세

__construct() 공개 메소드

public __construct ( Thelia\Core\Translation\Translator $translator, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$translator Thelia\Core\Translation\Translator
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

applyUserLocale() 보호된 메소드

protected applyUserLocale ( Thelia\Core\Security\User\UserInterface $user, Thelia\Core\HttpFoundation\Session\Session $session )
$user Thelia\Core\Security\User\UserInterface
$session Thelia\Core\HttpFoundation\Session\Session

checkCurrency() 공개 메소드

public checkCurrency ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

getRememberMeAdmin() 보호된 메소드

protected getRememberMeAdmin ( Thelia\Core\HttpFoundation\Request $request, Thelia\Core\HttpFoundation\Session\Session $session )
$request Thelia\Core\HttpFoundation\Request
$session Thelia\Core\HttpFoundation\Session\Session

getRememberMeCustomer() 보호된 메소드

protected getRememberMeCustomer ( Thelia\Core\HttpFoundation\Request $request, Thelia\Core\HttpFoundation\Session\Session $session, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) : array
$request Thelia\Core\HttpFoundation\Request
$session Thelia\Core\HttpFoundation\Session\Session
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
리턴 array

getSubscribedEvents() 공개 정적인 메소드

{@inheritdoc} api
public static getSubscribedEvents ( )

jsonBody() 공개 메소드

public jsonBody ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

registerPreviousUrl() 공개 메소드

If the value of _previous_url is "dont-save", the current referrer is not saved.
public registerPreviousUrl ( Symfony\Component\HttpKernel\Event\PostResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\PostResponseEvent

registerValidatorTranslator() 공개 메소드

public registerValidatorTranslator ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

rememberMeLoader() 공개 메소드

public rememberMeLoader ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

프로퍼티 상세

$eventDispatcher 보호되어 있는 프로퍼티

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher
리턴 Symfony\Component\EventDispatcher\EventDispatcherInterface