ソースを参照

[HttpFoundation] added $deep flag to Request::get()

Johannes Schmitt 14 年 前
コミット
411659bc07
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/Symfony/Component/HttpFoundation/Request.php

+ 2 - 2
src/Symfony/Component/HttpFoundation/Request.php

@@ -298,9 +298,9 @@ class Request
     //  * 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()