You are here

public function Application::__construct in Zircon Profile 8

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

Constructor.

Parameters

string $name The name of the application:

string $version The version of the application:

4 calls to Application::__construct()
CustomDefaultCommandApplication::__construct in vendor/symfony/console/Tests/ApplicationTest.php
Overwrites the constructor in order to set a different default command.
DbToolsApplication::__construct in core/lib/Drupal/Core/Command/DbToolsApplication.php
Constructor.
DescriptorApplication2::__construct in vendor/symfony/console/Tests/Fixtures/DescriptorApplication2.php
Constructor.
GenerateProxyClassApplication::__construct in core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php
Constructs a new GenerateProxyClassApplication instance.
4 methods override Application::__construct()
CustomDefaultCommandApplication::__construct in vendor/symfony/console/Tests/ApplicationTest.php
Overwrites the constructor in order to set a different default command.
DbToolsApplication::__construct in core/lib/Drupal/Core/Command/DbToolsApplication.php
Constructor.
DescriptorApplication2::__construct in vendor/symfony/console/Tests/Fixtures/DescriptorApplication2.php
Constructor.
GenerateProxyClassApplication::__construct in core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php
Constructs a new GenerateProxyClassApplication instance.

File

vendor/symfony/console/Application.php, line 79

Class

Application
An Application is the container for a collection of commands.

Namespace

Symfony\Component\Console

Code

public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN') {
  $this->name = $name;
  $this->version = $version;
  $this->defaultCommand = 'list';
  $this->helperSet = $this
    ->getDefaultHelperSet();
  $this->definition = $this
    ->getDefaultInputDefinition();
  foreach ($this
    ->getDefaultCommands() as $command) {
    $this
      ->add($command);
  }
}