Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | public function parse(\Twig_Token $token) |
||
52 | { |
||
53 | $lineno = $token->getLine(); |
||
54 | $stream = $this->parser->getStream(); |
||
55 | |||
56 | $annotation = $this->parser->getExpressionParser()->parseExpression(); |
||
57 | |||
58 | $key = $this->parser->getExpressionParser()->parseExpression(); |
||
59 | |||
60 | $stream->expect(\Twig_Token::BLOCK_END_TYPE); |
||
61 | $body = $this->parser->subparse(array($this, 'decideCacheEnd'), true); |
||
62 | $stream->expect(\Twig_Token::BLOCK_END_TYPE); |
||
63 | |||
64 | return new CacheNode($annotation, $key, $body, $lineno, $this->getTag()); |
||
65 | } |
||
66 | } |
||
67 |