summaryrefslogtreecommitdiffstats
path: root/Http/HttpUtils.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2013-10-01 07:05:57 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2013-10-01 07:05:57 +0200
commit03f3cffb8fea9c73717ccf7ce71f3c119dd3b64e (patch)
tree80a979526fdbf6244ceb43949a965df454bd9276 /Http/HttpUtils.php
parentd1ad5baedd91d60afac0c4ae1cd4b12fea20dc30 (diff)
parentc630752d97651608da0be80a085dd3abd6fb35b4 (diff)
downloadsymfony-security-03f3cffb8fea9c73717ccf7ce71f3c119dd3b64e.zip
symfony-security-03f3cffb8fea9c73717ccf7ce71f3c119dd3b64e.tar.gz
symfony-security-03f3cffb8fea9c73717ccf7ce71f3c119dd3b64e.tar.bz2
feature#8957 [HttpFoundation] added a way to override the Request class (fabpot)
This PR was merged into the master branch. Discussion ---------- [HttpFoundation] added a way to override the Request class | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #7461, #7453 | License | MIT | Doc PR | symfony/symfony-docs#3021 This is an alternative implementation for #7461. I've also reverted #7381 and #7390 as these changes are not needed anymore. Todo: - [ ] add some tests Commits ------- 464439d [HttpFoundation] added a way to override the Request class
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 65ab914..60733ad 100644
--- a/Http/HttpUtils.php
+++ b/Http/HttpUtils.php
@@ -72,7 +72,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 = Request::create($this->generateUri($request, $path), 'get', array(), $request->cookies->all(), array(), $request->server->all());
if ($request->hasSession()) {
$newRequest->setSession($request->getSession());
}