The class Twig_Environment has been deprecated with message: since Twig 2.7, use "Twig\Environment" instead
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be
removed from the class and what other constant to use instead.
Loading history...
21
{
22
/**
23
* @var \Twig_Environment
24
*/
25
protected $twig;
26
27
public function __construct(\Twig_Environment $twig)
28
{
29
$this->twig = $twig;
30
}
31
32
public function render($name, array $context = [])
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.