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