Revision 1852
Added by darkviper over 11 years ago
SandboxedModule.php | ||
---|---|---|
24 | 24 |
|
25 | 25 |
public function __construct(Twig_Node_Module $node, array $usedFilters, array $usedTags, array $usedFunctions) |
26 | 26 |
{ |
27 |
parent::__construct($node->getNode('body'), $node->getNode('parent'), $node->getNode('blocks'), $node->getNode('macros'), $node->getNode('traits'), $node->getAttribute('filename'), $node->getLine(), $node->getNodeTag()); |
|
27 |
parent::__construct($node->getNode('body'), $node->getNode('parent'), $node->getNode('blocks'), $node->getNode('macros'), $node->getNode('traits'), $node->getAttribute('embedded_templates'), $node->getAttribute('filename'), $node->getLine(), $node->getNodeTag());
|
|
28 | 28 |
|
29 |
$this->setAttribute('index', $node->getAttribute('index')); |
|
30 |
|
|
29 | 31 |
$this->usedFilters = $usedFilters; |
30 | 32 |
$this->usedTags = $usedTags; |
31 | 33 |
$this->usedFunctions = $usedFunctions; |
... | ... | |
43 | 45 |
parent::compileDisplayFooter($compiler); |
44 | 46 |
|
45 | 47 |
$compiler |
46 |
->write("protected function checkSecurity() {\n")
|
|
48 |
->write("protected function checkSecurity()\n", "{\n")
|
|
47 | 49 |
->indent() |
48 | 50 |
->write("\$this->env->getExtension('sandbox')->checkSecurity(\n") |
49 | 51 |
->indent() |
Also available in: Unified diff
updated Twig template engine to stable version 1.11.1 step2