PHP Class BenConstable\Localize\Determiners\Stack

Inheritance: extends Determiner
Show file Open project: benconstable/laravel-localize-middleware

Public Methods

Method Description
__construct ( Collection $determiners ) : void Constructor.
determineLocale ( Illuminate\Http\Request $request ) : string | null Determine the locale from the underlying determiner stack.
getDeterminers ( ) : Collection Get the underlying determiner stack.

Method Details

__construct() public method

Constructor.
public __construct ( Collection $determiners ) : void
$determiners Illuminate\Support\Collection
return void

determineLocale() public method

Determine the locale from the underlying determiner stack.
public determineLocale ( Illuminate\Http\Request $request ) : string | null
$request Illuminate\Http\Request
return string | null

getDeterminers() public method

Get the underlying determiner stack.
public getDeterminers ( ) : Collection
return Illuminate\Support\Collection