Exemple #1
0
 public function setUp()
 {
     $phpmig_container = new Container();
     $phpmig_container->addDefaultServices('no-config-file');
     $phpmig_container['hodor.database'] = $this->getTestFactory()->getYoPdo();
     $command_wrapper = new CommandWrapper($phpmig_container, new NullOutput());
     $command_wrapper->rollbackMigrations();
     $command_wrapper->runMigrations();
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $container = new Container();
     $container->addDefaultServices($input->getArgument('hodor-config'));
     $command_wrapper = new CommandWrapper($container, $output);
     if ($input->getOption('status')) {
         $command_wrapper->showStatus($this->getApplication());
         return;
     }
     $command_wrapper->runMigrations();
 }