Trait Preparing
Direct Known Users
MvcCore\Ext\Routers\Localization, MvcCore\Ext\Routers\MediaAndLocalization, MvcCore\Ext\Routers\ModuleLocalization, MvcCore\Ext\Routers\ModuleMediaAndLocalizationLocated at ext-router-localization/src/MvcCore/Ext/Routers/Localization/Preparing.php
protected
|
#
prepareLocalization( )
Prepare localizations processing:
- Check if any default localization configured.
- Complete allowed localizations into array keyed by it's values to check
by |
protected
|
#
prepareRequestLocalizationFromUrl( )
Try to set up lang (or lang and locale) from request query string and if there i no localization query param, try to set up localization from request path if any routes defined. If there is any lang detected (or lang and locale detected), set up these values into request object. |
protected
|
#
prepareRequestLocalizationFromUrlQueryString( )
Try to set up lang (or lang and locale) from request query string. |
protected
|
#
prepareRequestLocalizationFromUrlPath( )
Try to set up lang (or lang and locale) from request path. If there is any request path detected, remove localization from request path and store detected localization in local context. |
protected
boolean
|
#
prepareSetUpRequestLocalizationIfValid( string|null $rawRequestLocalization, boolean $correctRequestPath = FALSE )
Try to format given localization and check if localization is allowed. If localization is allowed, set up request localization and re-set up request path by second function argument. Or if localization is in localization equivalent array, also correct request path if necessary and set up target localization for later redirection. |