PHP Class Neos\ContentRepository\Migration\Command\NodeCommandController

Inheritance: extends Neos\Flow\Cli\CommandController
Datei anzeigen Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$migrationFactory Neos\ContentRepository\Migration\Domain\Factory\MigrationFactory
$migrationStatusRepository Neos\ContentRepository\Migration\Domain\Repository\MigrationStatusRepository
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$yamlSourceImporter Neos\Flow\Configuration\Source\YamlSource

Public Methods

Method Description
migrateCommand ( string $version, boolean $confirmation = false, string $direction = MigrationStatus::DIRECTION_UP ) : void Do the configured migrations in the given migration.
migrationStatusCommand ( ) : void List available and applied migrations

Protected Methods

Method Description
outputCommentsAndWarnings ( MigrationConfiguration $migrationConfiguration ) : void Helper to output comments and warnings for the given configuration.
phraseMigrationApplicationInformation ( array $migrationsInVersion ) : string

Method Details

migrateCommand() public method

By default the up direction is applied, using the direction parameter this can be changed.
public migrateCommand ( string $version, boolean $confirmation = false, string $direction = MigrationStatus::DIRECTION_UP ) : void
$version string The version of the migration configuration you want to use.
$confirmation boolean Confirm application of this migration, only needed if the given migration contains any warnings.
$direction string The direction to work in, MigrationStatus::DIRECTION_UP or MigrationStatus::DIRECTION_DOWN
return void

migrationStatusCommand() public method

List available and applied migrations
public migrationStatusCommand ( ) : void
return void

outputCommentsAndWarnings() protected method

Helper to output comments and warnings for the given configuration.
protected outputCommentsAndWarnings ( MigrationConfiguration $migrationConfiguration ) : void
$migrationConfiguration Neos\ContentRepository\Migration\Domain\Model\MigrationConfiguration
return void

phraseMigrationApplicationInformation() protected method

protected phraseMigrationApplicationInformation ( array $migrationsInVersion ) : string
$migrationsInVersion array
return string

Property Details

$contextFactory protected_oe property

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
return Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$migrationFactory protected_oe property

protected MigrationFactory,Neos\ContentRepository\Migration\Domain\Factory $migrationFactory
return Neos\ContentRepository\Migration\Domain\Factory\MigrationFactory

$migrationStatusRepository protected_oe property

protected MigrationStatusRepository,Neos\ContentRepository\Migration\Domain\Repository $migrationStatusRepository
return Neos\ContentRepository\Migration\Domain\Repository\MigrationStatusRepository

$nodeDataRepository protected_oe property

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
return Neos\ContentRepository\Domain\Repository\NodeDataRepository

$yamlSourceImporter protected_oe property

protected YamlSource,Neos\Flow\Configuration\Source $yamlSourceImporter
return Neos\Flow\Configuration\Source\YamlSource