/** * 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'))); } }
/** * 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]); } }