예제 #1
0
 /**
  * @return bool
  */
 public function generate()
 {
     // run analyzer pipeline
     $data = $this->analyzer->process(new AnalyzerData());
     if (!$this->write) {
         $this->debugOutput($data->output);
         return true;
     }
     // write models
     $this->modelWriter->setData($data->output);
     $this->modelWriter->writeFiles();
     // write repositories, if allowed to
     if (!config('pxlcms.generator.repositories.skip')) {
         $this->repositoryWriter->setData($data->output);
         $this->repositoryWriter->writeFiles();
     }
     return true;
 }
예제 #2
0
 /**
  * Writes output files based on the set data
  *
  * @return bool
  */
 public function writeFiles()
 {
     return parent::writeFiles();
 }