PHP Class BenConstable\Localize\Determiners\Parameter

Inheritance: extends Determiner
Mostrar archivo Open project: benconstable/laravel-localize-middleware Class Usage Examples

Public Methods

Method Description
__construct ( string $requestParam ) : void Constructor.
determineLocale ( Illuminate\Http\Request $request ) : string Determine the locale from the request parameters.

Method Details

__construct() public method

Constructor.
public __construct ( string $requestParam ) : void
$requestParam string Name of the request parameter that holds the locale
return void

determineLocale() public method

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