10000 added deprecation notice for HttpCache::createEsi() · symfony/symfony@f109f95 · GitHub
[go: up one dir, main page]

Skip to content

Commit f109f95

Browse files
committed
added deprecation notice for HttpCache::createEsi()
1 parent db5dee6 commit f109f95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function getOptions()
7272

7373
protected function createSurrogate()
7474
{
75-
return $this->createEsi();
75+
return new Esi();
7676
}
7777

7878
/**
@@ -84,7 +84,9 @@ protected function createSurrogate()
8484
*/
8585
protected function createEsi()
8686
{
87-
return new Esi();
87+
trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use createSurrogate() instead.', E_USER_DEPRECATED);
88+
89+
return $this->createSurrogate();
8890
}
8991

9092
protected function createStore()

0 commit comments

Comments
 (0)
0