class VersionCommand extends AbstractCommand (View source)

Command for manually adding and deleting migration versions from the version table.

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

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