Merge branch '2.1' into 2.2
* 2.1: changed sub-requests creation to '::create()' Conflicts: src/Symfony/Bundle/FrameworkBundle/HttpKernel.php src/Symfony/Component/Security/Http/HttpUtils.php
This commit is contained in:
commit
801a7f887b
@ -250,7 +250,7 @@ class Store implements StoreInterface
|
||||
// As per the RFC, invalidate Location and Content-Location URLs if present
|
||||
foreach (array('Location', 'Content-Location') as $header) {
|
||||
if ($uri = $request->headers->get($header)) {
|
||||
$subRequest = call_user_func(array(get_class($request), 'create'), 'get', array(), array(), array(), $request->server->all());
|
||||
$subRequest = $request::create($uri, 'get', array(), array(), array(), $request->server->all());
|
||||
|
||||
$this->invalidate($subRequest);
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ class HttpUtils
|
||||
*/
|
||||
public function createRequest(Request $request, $path)
|
||||
{
|
||||
$newRequest = call_user_func(array(get_class($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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user