PHP Класс Elcodi\Common\CommonBundle\Command\ElcodiInstallCommand

Наследование: extends Elcodi\Component\Core\Command\Abstracts\AbstractElcodiCommand
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, Doctrine\Common\Persistence\ObjectManager $locationEntityManager ) Construct

Защищенные методы

Метод Описание
configure ( ) Configures the current command.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : null | integer Executes the current command.

Приватные методы

Метод Описание
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

Описание методов

__construct() публичный Метод

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() защищенный Метод

Configures the current command.
protected configure ( )

execute() защищенный Метод

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.
См. также: 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
Результат null | integer null or 0 if everything went fine, or an error code