UserFrosting API

MigrateStatusCommand extends BaseCommand

migrate:status Bakery Command Show the list of installed and pending migration.

Tags
author

Louis Charette

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

Methods

execute()

{@inheritdoc}

protected execute( $input : InputInterface , $output : OutputInterface ) : mixed
Parameters
$input : InputInterface
$output : OutputInterface
Return values
mixed

getStatusFor()

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
mixed

setContainer()

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

Return values
bool

Search results