Skip to content

Commit

Permalink
Merge branch '2.1' into 2.2
Browse files Browse the repository at this point in the history
* 2.1:
  changed sub-requests creation to '::create()'

Conflicts:
	src/Symfony/Bundle/FrameworkBundle/HttpKernel.php
	src/Symfony/Component/Security/Http/HttpUtils.php
  • Loading branch information
fabpot committed Mar 15, 2013
2 parents 13ee95f + 7993ef0 commit 18efc4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HttpCache/Store.php
Expand Up @@ -250,7 +250,7 @@ public function invalidate(Request $request)
// As per the RFC, invalidate Location and Content-Location URLs if present // As per the RFC, invalidate Location and Content-Location URLs if present
foreach (array('Location', 'Content-Location') as $header) { foreach (array('Location', 'Content-Location') as $header) {
if ($uri = $request->headers->get($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); $this->invalidate($subRequest);
} }
Expand Down

0 comments on commit 18efc4b

Please sign in to comment.