class AbstractCommand extends Command

数据库迁移-抽象命令

Constants

DEFAULT_MIGRATION_TEMPLATE

The location of the default migration template.

DEFAULT_SEED_TEMPLATE

The location of the default seed template.

Methods

bootstrap( array $args, array $options = array())

Bootstrap Phinx.

setConfig( Config $config)

Sets the config.

Config
getConfig()

Gets the config.

setAdapter( AdapterInterface $adapter)

Sets the database adapter.

AdapterInterface
getAdapter()

Gets the database adapter.

setManager( Manager $manager)

Sets the migration manager.

Manager
getManager()

Gets the migration manager.

Details

at line line 60
bootstrap( array $args, array $options = array())

Bootstrap Phinx.

Parameters

array $args
array $options

at line line 108
AbstractCommand setConfig( Config $config)

Sets the config.

Parameters

Config $config

Return Value

AbstractCommand

at line line 119
Config getConfig()

Gets the config.

Return Value

Config

at line line 130
AbstractCommand setAdapter( AdapterInterface $adapter)

Sets the database adapter.

Parameters

AdapterInterface $adapter

Return Value

AbstractCommand

at line line 141
AdapterInterface getAdapter()

Gets the database adapter.

Return Value

AdapterInterface

at line line 152
AbstractCommand setManager( Manager $manager)

Sets the migration manager.

Parameters

Manager $manager

Return Value

AbstractCommand

at line line 163
Manager getManager()

Gets the migration manager.

Return Value

Manager