mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 04:46:49 +00:00
removed the possibility to pass a Template to Environment::load()
This commit is contained in:
@@ -350,12 +350,6 @@ class Environment
|
||||
return $name;
|
||||
}
|
||||
|
||||
if ($name instanceof Template) {
|
||||
@trigger_error('Passing a \Twig\Template instance to '.__METHOD__.' is deprecated since Twig 2.7.0, use \Twig\TemplateWrapper instead.', E_USER_DEPRECATED);
|
||||
|
||||
return new TemplateWrapper($this, $name);
|
||||
}
|
||||
|
||||
return new TemplateWrapper($this, $this->loadTemplate($this->getTemplateClass($name), $name));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user