Exemple #1
0
 protected function escapePrintNode(IfwPsn_Vendor_Twig_Node_Print $node, IfwPsn_Vendor_Twig_Environment $env, $type)
 {
     if (false === $type) {
         return $node;
     }
     $expression = $node->getNode('expr');
     if ($this->isSafeFor($type, $expression, $env)) {
         return $node;
     }
     $class = get_class($node);
     return new $class($this->getEscaperFilter($type, $expression), $node->getLine());
 }
Exemple #2
0
 public function __construct(IfwPsn_Vendor_Twig_Node_Expression $expr, $lineno, $tag = null)
 {
     parent::__construct($expr, $lineno, $tag);
 }