NodeCommandController
class NodeCommandController extends CommandController (View source)
Command controller for tasks related to node handling.
Properties
protected YamlSource | $yamlSourceImporter | ||
protected NodeDataRepository | $nodeDataRepository | ||
protected MigrationStatusRepository | $migrationStatusRepository | ||
protected MigrationFactory | $migrationFactory | ||
protected ContextFactoryInterface | $contextFactory | ||
protected | $packageManager | ||
protected | $generatorService |
Methods
void
migrateCommand(string $version, bool $confirmation = false, string $direction = MigrationStatus::DIRECTION_UP)
Do the configured migrations in the given migration.
void
migrationStatusCommand()
List available and applied migrations
void
migrationCreateCommand(string $packageKey)
Creates a node migration for the given package Key.
void
outputCommentsAndWarnings(MigrationConfiguration $migrationConfiguration)
Helper to output comments and warnings for the given configuration.
string
phraseMigrationApplicationInformation(array $migrationsInVersion)
No description
Details
void
migrateCommand(string $version, bool $confirmation = false, string $direction = MigrationStatus::DIRECTION_UP)
Do the configured migrations in the given migration.
By default the up direction is applied, using the direction parameter this can be changed.
void
migrationStatusCommand()
List available and applied migrations
void
migrationCreateCommand(string $packageKey)
Creates a node migration for the given package Key.
protected void
outputCommentsAndWarnings(MigrationConfiguration $migrationConfiguration)
Helper to output comments and warnings for the given configuration.
protected string
phraseMigrationApplicationInformation(array $migrationsInVersion)
No description