示例#1
0
 /**
  * Builds (or installs) the scaffold found at the given
  * location
  *
  * @param ScaffoldLocation $location
  */
 public function install(ScaffoldLocation $location)
 {
     // Get the build command
     $buildCmd = $this->getApplication()->find('build');
     // Create the arguments
     $arguments = ['config' => $location->getFilePath(), '--output' => $this->input->getOption('output'), '--cache' => $this->input->getOption('cache')];
     // Create the input
     $indexInput = new ArrayInput($arguments);
     // Execute the index command
     $buildCmd->run($indexInput, $this->output);
 }