PHP Class Pagekit\Application\Console\Application

Inheritance: extends Symfony\Component\Console\Application
Show file Open project: pagekit/pagekit Class Usage Examples

Protected Properties

Property Type Description
$container Pagekit\Application The Pagekit application instance.

Public Methods

Method Description
__construct ( Pagekit\Application $container, string $name = 'UNKNOWN', $version = 'UNKNOWN' ) Constructor.
add ( Command $command ) : Command Add a command to the console.
run ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null )

Method Details

__construct() public method

Constructor.
public __construct ( Pagekit\Application $container, string $name = 'UNKNOWN', $version = 'UNKNOWN' )
$container Pagekit\Application
$name string

add() public method

Add a command to the console.
public add ( Command $command ) : Command
$command Symfony\Component\Console\Command\Command
return Symfony\Component\Console\Command\Command

run() public method

public run ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

Property Details

$container protected property

The Pagekit application instance.
protected Application,Pagekit $container
return Pagekit\Application