/**
  * Load minimizing translations at construct
  *
  * @param NodeTraverser $traverser
  */
 public function __construct(NodeTraverser $traverser = null)
 {
     parent::__construct($traverser);
     $this->apply(new CommentStripper());
     $this->apply(new NameResolver());
     $this->apply(new NodeStripper('Stmt_Use'));
 }
Example #2
0
 public function __construct(NodeTraverser $traverser = null)
 {
     parent::__construct($traverser);
     $this->apply(new NodeStripper('Expr_Include'));
     $this->apply(new CommentStripper());
     $this->apply(new NamespaceWrapper('fpdi'));
     $this->apply(new NameResolver());
     $this->apply(new NamespaceCrawler(['', '\\fpdf'], ['\\fpdi']));
     $this->apply(new TcpdfResolver());
 }