The class Twig_Extension has been deprecated with message: since Twig 2.7, use "Twig\Extension\AbstractExtension" 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...
11
{
12
private $engine;
13
14
1
public function __construct(HandlebarsEngine $environment)
15
{
16
1
$this->engine = $environment;
17
18
1
}
19
1
public function getFunctions()
20
{
21
return [
22
1
new \Twig_SimpleFunction('render_hbs', [$this, 'renderHandlebars'])
The class Twig_SimpleFunction has been deprecated with message: since Twig 2.7, use "Twig\TwigFunction" 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...
23
];
24
}
25
26
1
public function renderHandlebars($name, array $data = [])
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.