You are here

public function DescriptorApplication2::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Fixtures/DescriptorApplication2.php \Symfony\Component\Console\Tests\Fixtures\DescriptorApplication2::__construct()

Constructor.

Parameters

string $name The name of the application:

string $version The version of the application:

Overrides Application::__construct

File

vendor/symfony/console/Tests/Fixtures/DescriptorApplication2.php, line 18

Class

DescriptorApplication2

Namespace

Symfony\Component\Console\Tests\Fixtures

Code

public function __construct() {
  parent::__construct('My Symfony application', 'v1.0');
  $this
    ->add(new DescriptorCommand1());
  $this
    ->add(new DescriptorCommand2());
}