public function Request::setDefaultLocale in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::setDefaultLocale()
Sets the default locale.
Parameters
string $locale:
File
- vendor/
symfony/ http-foundation/ Request.php, line 1406
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundationCode
public function setDefaultLocale($locale) {
$this->defaultLocale = $locale;
if (null === $this->locale) {
$this
->setPhpDefaultLocale($locale);
}
}