From e5d0c080f99d6a7f516aeac1bcddba11525ffd01 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 23 Apr 2019 18:36:59 +0200 Subject: [PATCH] removed obsolete SandboxedPrintNode --- src/Node/SandboxedPrintNode.php | 52 --------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/Node/SandboxedPrintNode.php diff --git a/src/Node/SandboxedPrintNode.php b/src/Node/SandboxedPrintNode.php deleted file mode 100644 index 6e7a26d7c..000000000 --- a/src/Node/SandboxedPrintNode.php +++ /dev/null @@ -1,52 +0,0 @@ - - */ -class SandboxedPrintNode extends PrintNode -{ - public function compile(Compiler $compiler) - { - $compiler - ->addDebugInfo($this) - ->write('echo ') - ; - $expr = $this->getNode('expr'); - if ($expr instanceof ConstantExpression) { - $compiler - ->subcompile($expr) - ->raw(";\n") - ; - } else { - $compiler - ->write('$this->extensions[SandboxExtension::class]->ensureToStringAllowed(') - ->subcompile($expr) - ->raw(', ') - ->repr($expr->getTemplateLine()) - ->raw(", \$this->source);\n") - ; - } - } -}