Orpheus

LocaleRouting
in package

Table of Contents

Properties

$request  : InputRequest

Methods

__construct()  : mixed
LocaleService constructor
extractLocaleFromPath()  : array<string|int, mixed>
getCookieLocale()  : string|null
getDomain()  : string|null
getDomainExtension()  : string|null
getExpectedLocales()  : array<string|int, mixed>
getLocaleFromHttpFormat()  : string
getPreferredHttpLocales()  : array<string|int, mixed>
getPreferredLocale()  : string|null
getRequest()  : InputRequest
matchPath()  : string

Properties

Methods

extractLocaleFromPath()

public extractLocaleFromPath() : array<string|int, mixed>
Return values
array<string|int, mixed>

[string $locale, HttpRequest $request] if containing a request, else an array of null values

getCookieLocale()

public getCookieLocale() : string|null
Return values
string|null

getDomain()

public getDomain() : string|null
Return values
string|null

getDomainExtension()

public getDomainExtension() : string|null
Return values
string|null

getExpectedLocales()

public getExpectedLocales() : array<string|int, mixed>
Return values
array<string|int, mixed>

getLocaleFromHttpFormat()

public static getLocaleFromHttpFormat(mixed $httpLocale) : string
Parameters
$httpLocale : mixed
Return values
string

getPreferredHttpLocales()

public static getPreferredHttpLocales(HttpRequest $request) : array<string|int, mixed>
Parameters
$request : HttpRequest
Return values
array<string|int, mixed>

getPreferredLocale()

public getPreferredLocale() : string|null
Return values
string|null

matchPath()

public matchPath(string $regex, array<string|int, mixed>|null &$matches) : string
Parameters
$regex : string
$matches : array<string|int, mixed>|null
Return values
string

							
On this page

Search results