From c1426baee1bdef376dec1d05cb71b9b912c0adcf Mon Sep 17 00:00:00 2001 From: Lukas Kahwe Smith Date: Mon, 31 Oct 2011 16:15:30 +0100 Subject: [PATCH] added locale handling forward compatibility --- src/Symfony/Component/HttpFoundation/Request.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index ae1bacf89b..13415f3494 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -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. *