\Cake\I18n\MiddlewareLocaleSelectorMiddleware

Sets the runtime default locale for the request based on the Accept-Language header. The default will only be set if it matches the list of passed valid locales.

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
No constants found
No protected methods found
$locales
N/A
No private methods found
No private properties found
N/A

Properties

$locales

$locales : array

List of valid locales for the request

Type

array

Methods

__construct()

__construct(array  $locales = array()) 

Constructor.

Parameters

array $locales

A list of accepted locales, or ['*'] to accept any locale header value.