PHP Class Aimeos\ShopBundle\Command\SetupCommand

Inheritance: extends Aimeos\ShopBundle\Command\Command
Show file Open project: aimeos/aimeos-symfony2

Protected Methods

Method Description
configure ( ) Configures the command name and description.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Executes the database initialization and update.
getDbConfig ( Aimeos\MW\Config\Iface $conf ) : array Returns the database configuration from the config object.
setOptions ( Aimeos\MW\Config\Iface $conf, Symfony\Component\Console\Input\InputInterface $input ) Extracts the configuration options from the input object and updates the configuration values in the config object.

Method Details

configure() protected method

Configures the command name and description.
protected configure ( )

execute() protected method

Executes the database initialization and update.
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface Input object
$output Symfony\Component\Console\Output\OutputInterface Output object

getDbConfig() protected method

Returns the database configuration from the config object.
protected getDbConfig ( Aimeos\MW\Config\Iface $conf ) : array
$conf Aimeos\MW\Config\Iface Config object
return array Multi-dimensional associative list of database configuration parameters

setOptions() protected method

Extracts the configuration options from the input object and updates the configuration values in the config object.
protected setOptions ( Aimeos\MW\Config\Iface $conf, Symfony\Component\Console\Input\InputInterface $input )
$conf Aimeos\MW\Config\Iface Configuration object
$input Symfony\Component\Console\Input\InputInterface Input object