]> Raphaël G. Git Repositories - packbundle/commitdiff
Useless as we use upstream Node, SetNode, TextNode and AssignNameExpression classes now
authorRaphaël Gertz <git@rapsys.eu>
Tue, 26 Nov 2019 12:35:17 +0000 (13:35 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 26 Nov 2019 12:35:17 +0000 (13:35 +0100)
Twig/PackNode.php [deleted file]

diff --git a/Twig/PackNode.php b/Twig/PackNode.php
deleted file mode 100644 (file)
index 79e8e41..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-namespace Rapsys\PackBundle\Twig;
-
-class PackNode extends \Twig\Node\Node {
-       /**
-        * Compile the body node
-        *
-        * @param $compiler
-        */
-       public function compile(\Twig\Compiler $compiler) {
-               //Add $context['<name>'] = '<value>'; in twig template
-               $compiler
-                       ->addDebugInfo($this)
-                       ->write('$context[\''.$this->getAttribute('name').'\'] = ')
-                       ->repr($this->getAttribute('output'))
-                       ->raw(";\n")
-                       ->subcompile($this->getNode('value'))
-                       ->raw(";\n");
-       }
-}