| @@ 118-121 (lines=4) @@ | ||
| 115 | } |
|
| 116 | ||
| 117 | $compiler->write('$swpCollectionMetaLoader'.$i." = \$this->env->getExtension('swp_gimme')->getLoader();\n"); |
|
| 118 | if ($this->hasNode('ignoreContext')) { |
|
| 119 | $compiler->write('$swpContext'.$i."GimmeList = \$this->env->getExtension('swp_gimme')->getContext();\n"); |
|
| 120 | $compiler->write('$swpIgnoreContext'.$i.'GimmeList = $swpContext'.$i.'GimmeList->temporaryUnset(')->subcompile($this->getNode('ignoreContext'))->raw(");\n"); |
|
| 121 | } |
|
| 122 | $compiler->write('')->subcompile($this->getNode('collectionType'))->raw(' = twig_ensure_traversable($swpCollectionMetaLoader'.$i.'->load("')->raw($collectionTypeName)->raw('", '); |
|
| 123 | $compiler->raw('$parameters'); |
|
| 124 | $compiler->raw(", \SWP\Component\TemplatesSystem\Gimme\Loader\LoaderInterface::COLLECTION));\n"); |
|
| @@ 68-71 (lines=4) @@ | ||
| 65 | $compiler |
|
| 66 | ->addDebugInfo($this) |
|
| 67 | ->write('$swpMetaLoader'.$i." = \$this->env->getExtension('swp_gimme')->getLoader();\n"); |
|
| 68 | if ($this->hasNode('ignoreContext')) { |
|
| 69 | $compiler->write('$swpContext'.$i."Gimme = \$this->env->getExtension('swp_gimme')->getContext();\n"); |
|
| 70 | $compiler->write('$swpIgnoreContext'.$i.'Gimme = $swpContext'.$i.'Gimme->temporaryUnset(')->subcompile($this->getNode('ignoreContext'))->raw(");\n"); |
|
| 71 | } |
|
| 72 | $compiler |
|
| 73 | ->write('')->subcompile($this->getNode('annotation'))->raw(' = $swpMetaLoader'.$i.'->load("')->raw($this->getNode('annotation')->getNode(0)->getAttribute('name'))->raw('", '); |
|
| 74 | if ($this->hasNode('parameters')) { |
|