Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 protected function doExecute(MigrateCommand $command, callable $next)
 {
     $migration = $command->getMigration();
     if ($migration instanceof OptionsAwareInterface) {
         $migration->setOptions($command->getOptions());
     }
     return $next($command);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function doExecute(MigrateCommand $command, callable $next)
 {
     $migration = $command->getMigration();
     $direction = $command->getOptions()->getDirection();
     $migration->{$direction}();
 }