示例#1
0
 public function __construct(Twig_Node_Expression $expr, array $imports, $lineno, $tag = null)
 {
     parent::__construct($expr, new Twig_Node_Expression_AssignName('_imported_' . rand(10000, 99999), $lineno), $lineno, $tag);
     $this->setAttribute('imports', $imports);
 }
示例#2
0
 public function __construct(Twig_Node_Expression $expr, $lineno, $tag = null)
 {
     parent::__construct($expr, new Twig_Node_Expression_AssignName(str_replace('.', '_', uniqid('_imported_', true)), $lineno), $lineno, $tag);
 }