1 | <?php |
||
19 | class CacheTagExtension extends \Twig_Extension |
||
|
|||
20 | { |
||
21 | /** |
||
22 | * @var ResponseTagger |
||
23 | */ |
||
24 | private $responseTagger; |
||
25 | |||
26 | 3 | public function __construct(ResponseTagger $responseTagger) |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 2 | public function getFunctions() |
|
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. |
||
48 | * |
||
49 | * @param string|array $tag |
||
50 | */ |
||
51 | 1 | public function addTag($tag) |
|
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function getName() |
||
63 | } |
||
64 |
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.