Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
23 | public function compile(Twig_Compiler $compiler) |
||
24 | { |
||
25 | $compiler->addDebugInfo($this); |
||
26 | |||
27 | $compiler |
||
28 | ->write('$parent = $context;') |
||
29 | ->write('foreach ($this->env->getExtension(\'zicht_framework_extra\')->getAnnotationRegistry()->getAnnotations() as $annotation) {') |
||
30 | ->indent() |
||
31 | ->write('$context[\'name\'] = $annotation[\'name\'];') |
||
32 | ->write('$context[\'value\'] = $annotation[\'value\'];') |
||
33 | ->subcompile($this->getNode('body')) |
||
34 | ->outdent() |
||
35 | ->write('}'); |
||
36 | $compiler->write('$context = $parent;'); |
||
37 | } |
||
39 |