You are here

public function Request::setLocale in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::setLocale()

Sets the locale.

Parameters

string $locale:

File

vendor/symfony/http-foundation/Request.php, line 1430

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function setLocale($locale) {
  $this
    ->setPhpDefaultLocale($this->locale = $locale);
}