PHP Class BenConstable\Localize\Determiners\Header

Inheritance: extends Determiner
Afficher le fichier Open project: benconstable/laravel-localize-middleware Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $header ) : void Constructor.
determineLocale ( Illuminate\Http\Request $request ) : string Determine the locale from the request parameters.

Method Details

__construct() public méthode

Constructor.
public __construct ( string $header ) : void
$header string Name of the header that holds the locale
Résultat void

determineLocale() public méthode

Determine the locale from the request parameters.
public determineLocale ( Illuminate\Http\Request $request ) : string
$request Illuminate\Http\Request
Résultat string