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