class MigrateCommand extends AbstractCommand (View source)

Command for executing a migration to a specified version or the latest available version.

Methods

configure()

No description

outputHeader(Configuration $configuration, OutputInterface $output)

No description

getMigrationConfiguration(InputInterface $input, OutputInterface $output)

When any (config) command line option is passed to the migration the migrationConfiguration property is set with the new generated configuration.

mixed
askConfirmation(string $question, InputInterface $input, OutputInterface $output)

No description

execute(InputInterface $input, OutputInterface $output)

No description

createMigration(Configuration $configuration)

Create a new migration instance to execute the migrations.

Details

protected configure()

protected outputHeader(Configuration $configuration, OutputInterface $output)

Parameters

Configuration $configuration
OutputInterface $output

setMigrationConfiguration(Configuration $config)

Parameters

Configuration $config

protected Configuration getMigrationConfiguration(InputInterface $input, OutputInterface $output)

When any (config) command line option is passed to the migration the migrationConfiguration property is set with the new generated configuration.

If no (config) option is passed the migrationConfiguration property is set to the value of the configuration one (if any). Else a new configuration is created and assigned to the migrationConfiguration property.

Parameters

InputInterface $input
OutputInterface $output

Return Value

Configuration

protected mixed askConfirmation(string $question, InputInterface $input, OutputInterface $output)

Parameters

string $question
InputInterface $input
OutputInterface $output

Return Value

mixed

execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

protected Migration createMigration(Configuration $configuration)

Create a new migration instance to execute the migrations.

Parameters

Configuration $configuration The configuration with which the migrations will be executed

Return Value

Migration a new migration instance