Exemplo n.º 1
0
 public function __construct()
 {
     $parser = new Parser(new Lexer());
     $dumper = new PHPDumper();
     $dumper->registerVisitor('tag', new AutotagsVisitor());
     $this->slim = new SlimPHP($parser, $dumper);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $parser = new Parser(new Lexer());
     $dumper = new PHPDumper();
     $dumper->registerVisitor('tag', new AutotagsVisitor());
     $dumper->registerFilter('javascript', new JavaScriptFilter());
     $dumper->registerFilter('cdata', new CDATAFilter());
     $dumper->registerFilter('php', new PHPFilter());
     $dumper->registerFilter('style', new CSSFilter());
     $this->slim = new SlimPHP($parser, $dumper);
 }