PHP Класс Behat\Testwork\Cli\Application

Автор: Konstantin Kudryashov ([email protected])
Наследование: extends Symfony\Component\Console\Application
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( string $name, string $version, ConfigurationLoader $configLoader, ExtensionManager $extensionManager ) 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 ) : Command 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.

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

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

Initializes application.
public __construct ( string $name, string $version, ConfigurationLoader $configLoader, ExtensionManager $extensionManager )
$name string
$version string
$configLoader Behat\Testwork\ServiceContainer\Configuration\ConfigurationLoader
$extensionManager Behat\Testwork\ServiceContainer\ExtensionManager

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

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

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

Runs the current application.
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

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

Gets the name of the command based on input.
protected getCommandName ( Symfony\Component\Console\Input\InputInterface $input ) : string
$input Symfony\Component\Console\Input\InputInterface The input interface
Результат string The command name

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

protected getDefaultCommands ( )

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

Gets the default input definition.
public getDefaultInputDefinition ( ) : Symfony\Component\Console\Input\InputDefinition
Результат Symfony\Component\Console\Input\InputDefinition An InputDefinition instance