added locale handling forward compatibility
This commit is contained in:
parent
10eed30cde
commit
c1426baee1
@ -845,6 +845,21 @@ class Request
|
||||
$this->format = $format;
|
||||
}
|
||||
|
||||
public function setDefaultLocale($locale)
|
||||
{
|
||||
$this->session->setPhpDefaultLocale($locale);
|
||||
}
|
||||
|
||||
public function setLocale($locale)
|
||||
{
|
||||
$this->session->setLocale($locale);
|
||||
}
|
||||
|
||||
public function getLocale()
|
||||
{
|
||||
return $this->session->getLocale();
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the method is safe or not.
|
||||
*
|
||||
|
Reference in New Issue
Block a user