Skip to content

Commit

Permalink
added deprecation notice for HttpCache::createEsi()
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 4, 2015
1 parent db5dee6 commit f109f95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function getOptions()

protected function createSurrogate()
{
return $this->createEsi();
return new Esi();
}

/**
Expand All @@ -84,7 +84,9 @@ protected function createSurrogate()
*/
protected function createEsi()
{
return new Esi();
trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use createSurrogate() instead.', E_USER_DEPRECATED);

return $this->createSurrogate();
}

protected function createStore()
Expand Down

0 comments on commit f109f95

Please sign in to comment.