PHP Class Symfony\Bundle\FrameworkBundle\Console\Application

Author: Fabien Potencier ([email protected])
Inheritance: extends Symfony\Components\Console\Application
Show file Open project: symfony/symfony Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel ) Constructor.
all ( $namespace = null )
doRun ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer Runs the current application.
find ( $name )
get ( $name )
getKernel ( ) : Symfony\Component\HttpKernel\KernelInterface Gets the Kernel associated with this Console.
getLongVersion ( )

Protected Methods

Method Description
registerCommands ( )

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
$kernel Symfony\Component\HttpKernel\KernelInterface A KernelInterface instance

all() public method

public all ( $namespace = null )

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

find() public method

public find ( $name )

get() public method

public get ( $name )

getKernel() public method

Gets the Kernel associated with this Console.
public getKernel ( ) : Symfony\Component\HttpKernel\KernelInterface
return Symfony\Component\HttpKernel\KernelInterface A KernelInterface instance

getLongVersion() public method

public getLongVersion ( )

registerCommands() protected method

protected registerCommands ( )