__construct() public method

Creates a new configuration.
public __construct ( )
Example #1
0
 /**
  * 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();
 }
Example #2
0
 /**
  * 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);
     }
 }