LangNegotiationListener
in package
FinalYes
Attributes
- #[AsEventListener]
- $event: \Symfony\Component\HttpKernel\KernelEvents::REQUEST
- $priority: 16
Table of Contents
Constants
- REQUEST_ATTRIBUTE = '_spip_lang'
- FONDS_FORCER_LANG = ['login']
Methods
- __invoke() : void
- canCheckLang() : bool
- checkLangUrl() : void
- selectLang() : string
- shouldForceLang() : bool
Constants
REQUEST_ATTRIBUTE
public
mixed
REQUEST_ATTRIBUTE
= '_spip_lang'
FONDS_FORCER_LANG
private
mixed
FONDS_FORCER_LANG
= ['login']
Methods
__invoke()
public
__invoke(RequestEvent $event) : void
Parameters
- $event : RequestEvent
canCheckLang()
private
canCheckLang(Request $request) : bool
Parameters
- $request : Request
Return values
boolcheckLangUrl()
private
checkLangUrl() : void
selectLang()
private
selectLang(Request $request) : string
Parameters
- $request : Request
Return values
stringshouldForceLang()
private
shouldForceLang(Request $request) : bool
Parameters
- $request : Request