LocaleResolver
in package
implements
Middleware
Interfaces, Classes, Traits and Enums
Table of Contents
- $localeRouteSegment : mixed
- $request : Request
- $router : Router
- $translation : Translation
- __construct() : mixed
- run() : mixed
- setLocaleViaAcceptLanguage() : mixed
- setLocaleViaParameter() : mixed
Properties
$localeRouteSegment
protected
mixed
$localeRouteSegment
$request
protected
Request
$request
$router
protected
Router
$router
$translation
protected
Translation
$translation
Methods
__construct()
public
__construct(Request $request, Router $router, Translation $translation) : mixed
Parameters
- $request : Request
- $router : Router
- $translation : Translation
Return values
mixed —run()
public
run() : mixed
Return values
mixed —setLocaleViaAcceptLanguage()
protected
setLocaleViaAcceptLanguage() : mixed
Return values
mixed —setLocaleViaParameter()
protected
setLocaleViaParameter() : mixed