Exemplo n.º 1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $skelton = realpath(__DIR__ . '/../../../skelton');
     $project_folder = new BaseIo($this->getApplication()->getProject()->getPath()->get());
     $skelton_folder = new BaseIo($skelton);
     # ask for confirmation if dir is not empty
     if ($project_folder->isEmpty() === false) {
         # as for confirmation
         $dialog = $this->getHelperSet()->get('dialog');
         if (!$dialog->askConfirmation($output, '<question>Folder is not empty continue? [y|n]</question>', false)) {
             return;
         }
     }
     $this->getApplication()->getProject()->build($project_folder, $skelton_folder, $output);
 }