PHP Класс Sulu\Bundle\SecurityBundle\EventListener\UserLocaleListener

Показать файл Открыть проект

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

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

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

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

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

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

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