From 411659bc07bc99b0f4e83ce068f988926ce878a0 Mon Sep 17 00:00:00 2001 From: Johannes Schmitt Date: Tue, 10 May 2011 11:19:15 +0200 Subject: [PATCH] [HttpFoundation] added $deep flag to Request::get() --- src/Symfony/Component/HttpFoundation/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 7215d7a30350..ca496a9f311e 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -298,9 +298,9 @@ public function overrideGlobals() // * slow // * prefer to get from a "named" source // This method is mainly useful for libraries that want to provide some flexibility - public function get($key, $default = null) + public function get($key, $default = null, $deep = false) { - return $this->query->get($key, $this->attributes->get($key, $this->request->get($key, $default))); + return $this->query->get($key, $this->attributes->get($key, $this->request->get($key, $default, $deep), $deep), $deep); } public function getSession()