[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch




/vendor/symfony/http-kernel/EventListener/ -> LocaleListener.php (summary)

(no description)

File Size: 137 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LocaleListener:: (7 methods):

Class: LocaleListener  - X-Ref

Initializes the locale based on the current request.

This listener works in 2 modes:

* 2.3 compatibility mode where you must call setRequest whenever the Request changes.
* 2.4+ mode where you must pass a RequestStack instance in the constructor.

__construct($requestStack = null, $defaultLocale = 'en', $router = null)   X-Ref
RequestStack will become required in 3.0.

param: RequestStack                      $requestStack  A RequestStack instance
param: string                            $defaultLocale The default locale
param: RequestContextAwareInterface|null $router        The router

setRequest(Request $request = null)   X-Ref
Sets the current Request.

This method was used to synchronize the Request, but as the HttpKernel
is doing that automatically now, you should never call it directly.
It is kept public for BC with the 2.3 version.

param: Request|null $request A Request instance

onKernelRequest(GetResponseEvent $event)   X-Ref
No description

onKernelFinishRequest(FinishRequestEvent $event)   X-Ref
No description

setLocale(Request $request)   X-Ref
No description

setRouterContext(Request $request)   X-Ref
No description

getSubscribedEvents()   X-Ref
No description

Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1