| 1 | <?php |
||
| 21 | class CacheTagExtension extends AbstractExtension |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var ResponseTagger |
||
| 25 | */ |
||
| 26 | private $responseTagger; |
||
| 27 | |||
| 28 | 3 | public function __construct(ResponseTagger $responseTagger) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 2 | public function getFunctions() |
|
| 42 | |||
| 43 | /** |
||
| 44 | * Add a single tag or an array of tags to the response. |
||
| 45 | * |
||
| 46 | * The tag string is *not* further processed, you can't use a comma |
||
| 47 | * separated string to pass several tags but need to build a twig array. |
||
| 48 | * |
||
| 49 | * Calling this twig function adds nothing to the output. |
||
| 50 | * |
||
| 51 | * @param string|array $tag |
||
| 52 | */ |
||
| 53 | 1 | public function addTag($tag) |
|
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | public function getName() |
||
| 65 | } |
||
| 66 |