Symfony2 API
Class

Symfony\Bundle\FrameworkBundle\Console\Application

class Application extends Application

Application.

Methods

__construct(KernelInterface $kernel)

Constructor.

KernelInterface getKernel()

Gets the Kernel associated with this Console.

integer doRun(InputInterface $input, OutputInterface $output)

Runs the current application.

Details

at line 36
public __construct(KernelInterface $kernel)

Constructor.

Parameters

KernelInterface $kernel A KernelInterface instance

at line 53
public KernelInterface getKernel()

Gets the Kernel associated with this Console.

Return Value

KernelInterface A KernelInterface instance

at line 66
public integer doRun(InputInterface $input, OutputInterface $output)

Runs the current application.

Parameters

InputInterface $input An Input instance
OutputInterface $output An Output instance

Return Value

integer 0 if everything went fine, or an error code