$this->loader =
$loader;
$this->shopwareVersion =
$shopwareVersion;
} protected function getMigrationGenerator(MigrationCollection
$collection, ?int
$until, ?int
$limit): \Generator
{ yield from $collection->
migrateInSteps($until,
$limit);
} protected function getMigrationsCount(MigrationCollection
$collection, ?int
$until, ?int
$limit): int
{ return \
count($collection->
getExecutableMigrations($until,
$limit));
} protected function configure(): void
{ $this ->
addArgument('identifier', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'identifier to determine which migrations to run',
['core'
]) ->
addOption('all', 'all', InputOption::VALUE_NONE, 'no migration timestamp cap'
) ->
addOption('until', 'u', InputOption::VALUE_OPTIONAL, 'timestamp cap for migrations'
) ->
addOption('limit', 'l', InputOption::VALUE_OPTIONAL, '', '0'
);
}