/** * Creates a new console application. * * @param string $name The name of the application. * @param string $version The application version. */ public function __construct($name = null, $version = null) { $this->name = $name; $this->version = $version; parent::__construct(); }
/** * Creates a new configuration. * * @param string $name The name of the command. * @param ApplicationConfig $applicationConfig The application configuration. */ public function __construct($name = null, ApplicationConfig $applicationConfig = null) { $this->applicationConfig = $applicationConfig; parent::__construct(); if ($name) { $this->setName($name); } }