summaryrefslogtreecommitdiffstats
path: root/Http/HttpUtils.php
diff options
context:
space:
mode:
authorJean-François Simon <contact@jfsimon.fr>2013-03-14 17:43:08 +0100
committerJean-François Simon <contact@jfsimon.fr>2013-03-14 17:43:08 +0100
commit92e984abfa1dba54b8a25e5492f7696bfaf0cb25 (patch)
treee56d04325b516cf32fe53a745ff957b1e1a8489f /Http/HttpUtils.php
parent339f14cab6ffc0a4285f480a7487b32e3d4c20c1 (diff)
downloadsymfony-security-92e984abfa1dba54b8a25e5492f7696bfaf0cb25.zip
symfony-security-92e984abfa1dba54b8a25e5492f7696bfaf0cb25.tar.gz
symfony-security-92e984abfa1dba54b8a25e5492f7696bfaf0cb25.tar.bz2
sub-requests are now created with the same class as their parent
Diffstat (limited to 'Http/HttpUtils.php')
-rw-r--r--Http/HttpUtils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/HttpUtils.php b/Http/HttpUtils.php
index 761aa5a..ce03d1d 100644
--- a/Http/HttpUtils.php
+++ b/Http/HttpUtils.php
@@ -70,7 +70,7 @@ class HttpUtils
*/
public function createRequest(Request $request, $path)
{
- $newRequest = Request::create($this->generateUri($request, $path), 'get', array(), $request->cookies->all(), array(), $request->server->all());
+ $newRequest = call_user_func(array(get_class($request), 'create'), $this->generateUri($request, $path), 'get', array(), $request->cookies->all(), array(), $request->server->all());
if ($session = $request->getSession()) {
$newRequest->setSession($session);
}