PHP Class Behat\Testwork\Cli\Application

Author: Konstantin Kudryashov ([email protected])
Inheritance: extends Symfony\Component\Console\Application
Datei anzeigen Open project: behat/behat Class Usage Examples

Public Methods

Method Description
__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.

Protected Methods

Method Description
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 ( )

Private Methods

Method Description
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.

Method Details

__construct() public method

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 method

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() public method

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
return integer 0 if everything went fine, or an error code

getCommandName() protected method

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
return string The command name

getDefaultCommands() protected method

protected getDefaultCommands ( )

getDefaultInputDefinition() public method

Gets the default input definition.
public getDefaultInputDefinition ( ) : Symfony\Component\Console\Input\InputDefinition
return Symfony\Component\Console\Input\InputDefinition An InputDefinition instance