PHP Class Elcodi\Common\CommonBundle\Command\ElcodiInstallCommand

Inheritance: extends Elcodi\Component\Core\Command\Abstracts\AbstractElcodiCommand
Show file Open project: elcodi/bamboo

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, Doctrine\Common\Persistence\ObjectManager $locationEntityManager ) Construct

Protected Methods

Method Description
configure ( ) Configures the current command.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : null | integer Executes the current command.

Private Methods

Method Description
executeCommand ( string $command, array $options = [] ) Execute a command
installElcodi ( Symfony\Component\Console\Output\OutputInterface $output, array $countries ) Install Elcodi environment
loadCommonFixtures ( ) Load common fixtures
loadLocation ( Symfony\Component\Console\Output\OutputInterface $output, string $country ) Load country from Elcodi files Repository
loadLocations ( Symfony\Component\Console\Output\OutputInterface $output, array $countries ) Load countries

Method Details

__construct() public method

Construct
public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, Doctrine\Common\Persistence\ObjectManager $locationEntityManager )
$kernel Symfony\Component\HttpKernel\KernelInterface Kernel
$locationEntityManager Doctrine\Common\Persistence\ObjectManager Location entity manager

configure() protected method

Configures the current command.
protected configure ( )

execute() protected method

This method is not abstract because you can use this class as a concrete class. In this case, instead of defining the execute() method, you set the code to execute by passing a Closure to the setCode() method.
See also: setCode()
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : null | integer
$input Symfony\Component\Console\Input\InputInterface An InputInterface instance
$output Symfony\Component\Console\Output\OutputInterface An OutputInterface instance
return null | integer null or 0 if everything went fine, or an error code