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...
20
{
21
/**
22
* @var ResponseTagger
23
*/
24
private $responseTagger;
25
26
3
public function __construct(ResponseTagger $responseTagger)
27
{
28
3
$this->responseTagger = $responseTagger;
29
3
}
30
31
/**
32
* {@inheritdoc}
33
*/
34
2
public function getFunctions()
35
{
36
return [
37
2
new \Twig_SimpleFunction('fos_httpcache_tag', [$this, 'addTag']),
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...
38
];
39
}
40
41
/**
42
* Add a single tag or an array of tags to the response.
43
*
44
* The tag string is *not* further processed, you can't use a comma
45
* separated string to pass several tags but need to build a twig array.
46
*
47
* Calling this twig function adds nothing to the output.
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.