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.

Parameters

string $version

The version of the migration configuration you want to use.

bool $confirmation

Confirm application of this migration, only needed if the given migration contains any warnings.

string $direction

The direction to work in, MigrationStatus::DIRECTION_UP or MigrationStatus::DIRECTION_DOWN

Return Value

void

See also

neos.contentrepository.migration:node:migrationstatus

void migrationStatusCommand()

List available and applied migrations

Return Value

void

See also

neos.contentrepository.migration:node:migrate

void migrationCreateCommand(string $packageKey)

Creates a node migration for the given package Key.

Parameters

string $packageKey

The packageKey for the given package

Return Value

void

Exceptions

UnknownPackageException
FilesException
StopCommandException

See also

neos.contentrepository.migration:node:migrationcreate

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