コード例 #1
0
ファイル: Generator.php プロジェクト: arbuuuud/gnt-aops
 /**
  * Run the generator
  *
  * @param $templatePath
  * @param $templateData
  * @param $filePathToGenerate
  */
 public function make($templatePath, $templateData, $filePathToGenerate)
 {
     // We first need to compile the template,
     // according to the data that we provide.
     $template = $this->compile($templatePath, $templateData, new TemplateCompiler());
     // Now that we have the compiled template,
     // we can actually generate the file.
     $this->file->make($filePathToGenerate, $template);
 }