__construct() публичный Метод

public __construct ( Config $configuration )
$configuration Config
Пример #1
0
 /**
  * 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());
 }