__construct() 공개 메소드

Creates a new configuration.
public __construct ( )
예제 #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();
 }
예제 #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);
     }
 }