$body); $attributes = array_replace( array('debug' => null, 'combine' => null, 'var_name' => 'asset_url'), $attributes, array('asset' => $asset, 'inputs' => $inputs, 'filters' => $filters, 'name' => $name) ); parent::__construct($nodes, $attributes, $lineno, $tag); } public function compile(\Twig_Compiler $compiler) { $compiler->addDebugInfo($this); $combine = $this->getAttribute('combine'); $debug = $this->getAttribute('debug'); if (null === $combine && null !== $debug) { $combine = !$debug; } if (null === $combine) { $compiler ->write("if (isset(\$context['assetic']['debug']) && \$context['assetic']['debug']) {\n") ->indent() ; $this->compileDebug($compiler); $compiler ->outdent() ->write("} else {\n") ->indent() ; $this->compileAsset($compiler, $this->getAttribute('asset'), $this->getAttribute('name')); $compiler ->outdent() ->write("}\n") ; } elseif ($combine) { $this->compileAsset($compiler, $this->getAttribute('asset'), $this->getAttribute('name')); } else { $this->compileDebug($compiler); } $compiler ->write('unset($context[') ->repr($this->getAttribute('var_name')) ->raw("]);\n") ; } protected function compileDebug(\Twig_Compiler $compiler) { $i = 0; foreach ($this->getAttribute('asset') as $leaf) { $leafName = $this->getAttribute('name').'_'.$i++; $this->compileAsset($compiler, $leaf, $leafName); } } protected function compileAsset(\Twig_Compiler $compiler, AssetInterface $asset, $name) { $compiler ->write("// asset \"$name\"\n") ->write('$context[') ->repr($this->getAttribute('var_name')) ->raw('] = ') ; $this->compileAssetUrl($compiler, $asset, $name); $compiler ->raw(";\n") ->subcompile($this->getNode('body')) ; } protected function compileAssetUrl(\Twig_Compiler $compiler, AssetInterface $asset, $name) { $compiler->repr($asset->getTargetPath()); } } __halt_compiler();----SIGNATURE:----BYCJlXa5Z6094EyaEYlMdw4GI4y5WVg7koU1jnTrRXP1cfuDqe4jm7xx6LmxkV3GOECCsLE+pzc8/CFY/dIrB3sLbUkDzT1Dcdyh0YhbyjdBck6Bvdm7j7RTB+nMMl7p7u4WphSS+A7snR/RUwd0ok6H1IqMPjvPw7LiSXhh/RtTJ5GbodUITYcTOqCq0VbPNwsLh8uHvh64wsrgyv7Uxuy5wFD+mkp3dVupiJ9S/D9WWZYhRywK7UF39RrvoLNF5FFgN+TTIivM1QG1HSl3Zwrjd4rr/BJiBWQMY975JLRKnQjFiPh0xj2VkGV06HNrcBy00+xGjFL8cEOFVvw7XbzbVHFJuZ8H4J80Erd6v6u3BpwYj9iN5DNKMI2KqNNz1OniJi2cpnE6T7+Bv+FjVhIK+8kxHxKfg/Pf3weAfEVtVBQzGrGS1AXvYy8N+n+/bW+nlC+rdyVhNRElRCRotLE8h6LzO6Mtx0sdV8KS+hbLsY6+6ymJc2tFQqBosDSFxpHTVuLsG6eQSgRqVCVmglaLrTbz2n/Ib9HZx2+kJxKBqraZLXnHB3qz12j7zrI0h4Qgez+4J1/ts7uI58wp6qJj7kVmDnlIjtLkUtGAPba0oMQTOw3bwN0DHZ4igDilQuSQzzex8Y/+8NCSvVO+/SN8NH3JYzGcM4+7oC5+eCE=----ATTACHMENT:----NDExMzk2OTk3MTk2MjE2NSA5Mjg1ODM1NjY2MTM5MzA2IDgxOTY2ODQ2OTU4Nzg5OTY=