__construct() public method

public __construct ( Compiler $compiler )
$compiler Latte\Compiler
コード例 #1
0
ファイル: TexyMacro.php プロジェクト: dg/texy
 public function __construct(Latte\Engine $engine, Texy $texy)
 {
     $this->texy = $texy;
     parent::__construct($engine->getCompiler());
 }
コード例 #2
0
ファイル: EditorMacros.php プロジェクト: instante/cms
 /**
  * EditorMacros constructor.
  */
 public function __construct(Engine $engine, IICMSAuthorizator $authorizator)
 {
     parent::__construct($engine->getCompiler());
     $this->engine = $engine;
     $this->authorizator = $authorizator;
 }