Пример #1
0
 /**
  * init command.
  */
 public function init(InputInterface $input, OutputInterface $output)
 {
     try {
         $this->executeWizard($input, $output);
         $this->filesytem->overwrite((new LlumRCFile())->path(), $this->compiler->compile($this->filesytem->get($this->getStubPath()), $this->data));
     } catch (\Exception $e) {
         print_r($e->xdebug_message);
     }
 }
Пример #2
0
 /**
  * Compile stub.
  *
  * @param $repo_name
  * @param $repo_description
  * @return mixed
  */
 protected function compileStub($repo_name, $repo_description)
 {
     $data = ["REPO_NAME" => $repo_name, "REPO_DESCRIPTION" => $repo_description];
     return $this->compile($this->filesystem->get($this->repo_json_stub()), $data);
 }