PHP Class Flarum\Http\Middleware\SetLocale

Inheritance: implements Zend\Stratigility\MiddlewareInterface
Datei anzeigen Open project: flarum/core

Protected Properties

Property Type Description
$locales Flarum\Locale\LocaleManager

Public Methods

Method Description
__construct ( LocaleManager $locales )
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $out = null )

Method Details

__construct() public method

public __construct ( LocaleManager $locales )
$locales Flarum\Locale\LocaleManager

__invoke() public method

public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $out = null )
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
$out callable

Property Details

$locales protected_oe property

protected LocaleManager,Flarum\Locale $locales
return Flarum\Locale\LocaleManager