class StatusCommand extends AbstractCommand (View source)

The StatusCommand class is responsible for outputting what the current state is of all your migrations. It shows what your current version is, how many new versions you have to execute, etc. and details about each of your migrations.

Properties

protected Configuration $configuration from AbstractCommand
protected Connection $connection from AbstractCommand
protected DependencyFactory $dependencyFactory from AbstractCommand
protected MigrationRepository $migrationRepository from AbstractCommand
protected Configuration|null $migrationConfiguration from AbstractCommand

Methods

setMigrationConfiguration(Configuration $configuration)

No description

setConnection(Connection $connection)

No description

setDependencyFactory(DependencyFactory $dependencyFactory)

No description

setMigrationRepository(MigrationRepository $migrationRepository)

No description

initialize(InputInterface $input, OutputInterface $output)

No description

configure()

No description

outputHeader(OutputInterface $output)

No description

getMigrationConfiguration(InputInterface $input, OutputInterface $output)

No description

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

No description

canExecute(string $question, InputInterface $input, OutputInterface $output)

No description

procOpen(string $editorCommand, string $path)

No description

execute(InputInterface $input, OutputInterface $output)

No description

Details

setMigrationConfiguration(Configuration $configuration)

Parameters

Configuration $configuration

setConnection(Connection $connection)

Parameters

Connection $connection

setDependencyFactory(DependencyFactory $dependencyFactory)

Parameters

DependencyFactory $dependencyFactory

setMigrationRepository(MigrationRepository $migrationRepository)

Parameters

MigrationRepository $migrationRepository

initialize(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

protected configure()

protected outputHeader(OutputInterface $output)

Parameters

OutputInterface $output

protected getMigrationConfiguration(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

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

Parameters

string $question
InputInterface $input
OutputInterface $output

protected canExecute(string $question, InputInterface $input, OutputInterface $output)

Parameters

string $question
InputInterface $input
OutputInterface $output

protected procOpen(string $editorCommand, string $path)

Parameters

string $editorCommand
string $path

execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output