You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#13594 added deprecation notice for HttpCache::createEsi() (fabpot)
This PR was merged into the 2.7 branch.
Discussion
----------
added deprecation notice for HttpCache::createEsi()
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
Commits
-------
f109f95 added deprecation notice for HttpCache::createEsi()
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ protected function getOptions()
72
72
73
73
protectedfunctioncreateSurrogate()
74
74
{
75
-
return$this->createEsi();
75
+
returnnewEsi();
76
76
}
77
77
78
78
/**
@@ -84,7 +84,9 @@ protected function createSurrogate()
84
84
*/
85
85
protectedfunctioncreateEsi()
86
86
{
87
-
returnnewEsi();
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);
0 commit comments