MigrateStatusCommand extends BaseCommand
migrate:status Bakery Command Show the list of installed and pending migration.
Tags
Table of Contents
$io | SymfonyStyle | |
---|---|---|
$ci | ContainerInterface | |
configure() | {@inheritdoc} | mixed |
execute() | {@inheritdoc} | mixed |
getStatusFor() | Return an array of [migration, available] association. | array |
initialize() | {@inheritdoc} | mixed |
setContainer() | Setup the global container object. | void |
isProduction() | Return if the app is in production mode. | bool |
Properties
$io
protected
SymfonyStyle
$io
Tags
$ci
protected
ContainerInterface
$ci
Methods
configure()
{@inheritdoc}
protected
configure(
)
: mixed
Return values
mixedexecute()
{@inheritdoc}
protected
execute(
$input :
InputInterface
, $output :
OutputInterface
)
: mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
mixedgetStatusFor()
Return an array of [migration, available] association.
protected
getStatusFor(
$ran :
Collection
, $available :
array
)
: array
A migration is available if it's in the available stack (class is in the Filesystem).
Parameters
- $ran : Collection
The ran migrations
- $available : array
The available migrations
Return values
array —An array of [migration, available] association
initialize()
{@inheritdoc}
protected
initialize(
$input :
InputInterface
, $output :
OutputInterface
)
: mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
mixedsetContainer()
Setup the global container object.
public
setContainer(
$ci :
ContainerInterface
)
: void
Parameters
- $ci : ContainerInterface
isProduction()
Return if the app is in production mode.
protected
isProduction(
)
: bool
@return bool True/False if the app is in production mode