class LocaleListener implements EventSubscriberInterface

Initializes the locale based on the current request.

Methods

__construct(Container $app, $defaultLocale = 'en', RequestStack $requestStack, RequestContext $requestContext = null)

No description

onKernelRequest(GetResponseEvent $event)

No description

onKernelFinishRequest(FinishRequestEvent $event)

No description

static 
getSubscribedEvents()

No description

Details

at line 36
__construct(Container $app, $defaultLocale = 'en', RequestStack $requestStack, RequestContext $requestContext = null)

Parameters

Container $app
$defaultLocale
RequestStack $requestStack
RequestContext $requestContext

at line 44
onKernelRequest(GetResponseEvent $event)

Parameters

GetResponseEvent $event

at line 55
onKernelFinishRequest(FinishRequestEvent $event)

Parameters

FinishRequestEvent $event

at line 76
static getSubscribedEvents()