__construct() public method

public __construct ( Config $configuration )
$configuration Config
コード例 #1
0
ファイル: Application.php プロジェクト: Frenkz/streamlines
 /**
  * Create a new Streamlines application instance.
  *
  * @param  \Phprest\Config  $phprestConfig
  * @param  string|null  $basePath
  */
 public function __construct(PhprestConfig $phprestConfig, $basePath = null)
 {
     parent::__construct($phprestConfig);
     if ($basePath !== null) {
         $this->setBasePath($basePath);
     }
     $this->config = new Config($this->configPath());
 }