PHP Class Thelia\Core\EventListener\RequestListener

Author: manuel raynaud ([email protected])
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface, use trait Thelia\Tools\RememberMeTrait
Mostrar archivo Open project: thelia/thelia

Protected Properties

Property Type Description
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

Public Methods

Method Description
__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 )

Protected Methods

Method Description
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

Method Details

__construct() public method

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

applyUserLocale() protected method

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 method

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

getRememberMeAdmin() protected method

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 method

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
return array

getSubscribedEvents() public static method

{@inheritdoc} api
public static getSubscribedEvents ( )

jsonBody() public method

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

registerPreviousUrl() public method

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 method

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

rememberMeLoader() public method

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

Property Details

$eventDispatcher protected_oe property

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher
return Symfony\Component\EventDispatcher\EventDispatcherInterface