final class MigrationStatusCommand implements CommandInterface (View source)

CLI command that displays the migration status.

When database history is unavailable, it reports registry-only Unknown states and returns a non-zero exit code because the status could not be verified.

Methods

__construct(MigrationRegistry $registry, ContainerInterface $container, mixed $stdout = null, mixed $stderr = null)

Initializes this MigrationStatusCommand with the collaborators and state required by its database contract.

string
name()

Provides this part of the database contract while preserving the object's current state and driver semantics.

string
string

Provides this part of the database contract while preserving the object's current state and driver semantics.

string
int
run(array $args)

Provides this part of the database contract while preserving the object's current state and driver semantics.

int

Details

__construct

__construct(MigrationRegistry $registry, ContainerInterface $container, mixed $stdout = null, mixed $stderr = null)

Initializes this MigrationStatusCommand with the collaborators and state required by its database contract.

Parameters

MigrationRegistry $registry
ContainerInterface $container
mixed $stdout
mixed $stderr

name

string name()

Provides this part of the database contract while preserving the object's current state and driver semantics.

Return Value

string

description

string description()

Provides this part of the database contract while preserving the object's current state and driver semantics.

Return Value

string

run

int run(array $args)

Provides this part of the database contract while preserving the object's current state and driver semantics.

Parameters

array $args

Arguments after the executable and command name.

Return Value

int