PHP Class ShopwareCli\Application

Class Application
Inheritance: extends Symfony\Component\Console\Application
Show file Open project: shopwarelabs/sw-cli-tools

Public Methods

Method Description
__construct ( Composer\Autoload\ClassLoader $loader )
doRun ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Protected Methods

Method Description
checkDirectories ( ) Make sure, that the required directories do actually exist
createContainer ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : ContainerBuilder Creates the container and sets some services which are only synthetic in the container
getDefaultInputDefinition ( ) : Symfony\Component\Console\Input\InputDefinition Add global "--no-extensions" option
loadExtensions ( boolean $noExtensions ) Load extensions. The default extensions are always loaded, 3rd party extensions depending on $noExtensions

Method Details

__construct() public method

public __construct ( Composer\Autoload\ClassLoader $loader )
$loader Composer\Autoload\ClassLoader

checkDirectories() protected method

Make sure, that the required directories do actually exist
protected checkDirectories ( )

createContainer() protected method

Creates the container and sets some services which are only synthetic in the container
protected createContainer ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : ContainerBuilder
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return Symfony\Component\DependencyInjection\ContainerBuilder

doRun() public method

public doRun ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getDefaultInputDefinition() protected method

Add global "--no-extensions" option
protected getDefaultInputDefinition ( ) : Symfony\Component\Console\Input\InputDefinition
return Symfony\Component\Console\Input\InputDefinition

loadExtensions() protected method

Default extensions are loaded first
protected loadExtensions ( boolean $noExtensions )
$noExtensions boolean