Метод | Описание | |
---|---|---|
__construct ( string $name, string $version, |
Initializes application. | |
doRun ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | Runs the current application. | |
getDefaultInputDefinition ( ) : Symfony\Component\Console\Input\InputDefinition | Gets the default input definition. |
Метод | Описание | |
---|---|---|
configureIO ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) | ||
getCommandName ( Symfony\Component\Console\Input\InputInterface $input ) : string | Gets the name of the command based on input. | |
getDefaultCommands ( ) |
Метод | Описание | |
---|---|---|
createCommand ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : |
Creates main command for application. | |
createContainer ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : Symfony\Component\DependencyInjection\ContainerInterface | Creates container instance, loads extensions and freezes it. | |
getBasePath ( ) : string | Returns base path. | |
loadConfiguration ( Symfony\Component\Console\Input\InputInterface $input ) : array | Configures container based on provided config file and profile. |
public __construct ( string $name, string $version, |
||
$name | string | |
$version | string | |
$configLoader | ||
$extensionManager |
protected configureIO ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) | ||
$input | Symfony\Component\Console\Input\InputInterface | |
$output | Symfony\Component\Console\Output\OutputInterface |
public doRun ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | ||
$input | Symfony\Component\Console\Input\InputInterface | An Input instance |
$output | Symfony\Component\Console\Output\OutputInterface | An Output instance |
Результат | integer | 0 if everything went fine, or an error code |
protected getCommandName ( Symfony\Component\Console\Input\InputInterface $input ) : string | ||
$input | Symfony\Component\Console\Input\InputInterface | The input interface |
Результат | string | The command name |
public getDefaultInputDefinition ( ) : Symfony\Component\Console\Input\InputDefinition | ||
Результат | Symfony\Component\Console\Input\InputDefinition | An InputDefinition instance |