Skip to content

Commit

Permalink
[HttpFoundation] added $deep flag to Request::get()
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittjoh committed May 10, 2011
1 parent 89f60e0 commit 411659b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/HttpFoundation/Request.php
Expand Up @@ -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()
Expand Down

0 comments on commit 411659b

Please sign in to comment.