minor #2874 Remove runtime deprecation that prevent smooth update (nicolas-grekas)

This PR was merged into the 2.x branch.

Discussion
----------

Remove runtime deprecation that prevent smooth update

This deprecation is already triggered when a class that implements `InitRuntimeInterface` is loaded.
This runtime deprecation prevents creating a continuous upgrade path.

Commits
-------

8f9fe276 Remove runtime deprecation that prevent smooth update
This commit is contained in:
Fabien Potencier
2019-03-10 12:27:35 +01:00
+2 -2
View File
@@ -49,6 +49,8 @@ final class ExtensionSet
/**
* Initializes the runtime environment.
*
* @deprecated since Twig 2.7
*/
public function initRuntime(Environment $env)
{
@@ -60,8 +62,6 @@ final class ExtensionSet
foreach ($this->extensions as $extension) {
if ($extension instanceof InitRuntimeInterface) {
@trigger_error(sprintf('Implementing \Twig\Extension\InitRuntimeInterface on "%s" is deprecated since Twig 2.7 as the interface will be removed in 3.0.', get_class($extension)), E_USER_DEPRECATED);
$extension->initRuntime($env);
}
}