PHP Class Sulu\Bundle\SecurityBundle\EventListener\UserLocaleListener

Show file Open project: sulu/sulu

Public Methods

Method Description
__construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage )
copyUserLocaleToRequest ( GetResponseEvent $event ) Sets the locale of the current User to the request, if a User is logged in.

Method Details

__construct() public method

public __construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface

copyUserLocaleToRequest() public method

Sets the locale of the current User to the request, if a User is logged in.
public copyUserLocaleToRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent