Example #1
0
 /**
  * Configure input options
  *
  * @param InputInterface $input
  */
 protected function configureOptions(InputInterface $input)
 {
     if ($input->getOption('path')) {
         $this->finder->setPath($input->getOption('path'));
         $this->locator->setParams(array('path' => $input->getOption('path')));
     }
 }
Example #2
0
File: Setup.php Project: itkg/core
 /**
  * Create migrations from scripts & rollback files
  *
  * @return void
  *
  * @throws \RuntimeException
  * @throws \LogicException
  */
 private function createMigrations()
 {
     $scripts = $this->locator->findScripts();
     $rollbacks = $this->locator->findRollbackScripts();
     $this->releaseChecker->checkScripts($scripts, $rollbacks);
     foreach ($scripts as $k => $script) {
         $this->createMigration($script, $rollbacks[$k]);
     }
 }