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 $packageManager
protected MigrationGeneratorService $generatorService

Methods

migrateCommand($version, $confirmation = false, $direction = MigrationStatus::DIRECTION_UP)

Do the configured migrations in the given migration.

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

migrateCommand($version, $confirmation = false, $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.

Parameters

$version
$confirmation
$direction

migrationStatusCommand()

List available and applied migrations

void migrationCreateCommand(string $packageKey)

Creates a node migration for the given package Key.

Parameters

string $packageKey

Return Value

void

protected void outputCommentsAndWarnings(MigrationConfiguration $migrationConfiguration)

Helper to output comments and warnings for the given configuration.

Parameters

MigrationConfiguration $migrationConfiguration

Return Value

void

protected string phraseMigrationApplicationInformation(array $migrationsInVersion)

No description

Parameters

array $migrationsInVersion

Return Value

string