class UpToDateCommand extends AbstractCommand (View source)

The UpToDateCommand class outputs if your database is up to date or if there are new migrations that need to be executed.

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