Ejemplo n.º 1
0
 /** {@inheritdoc} */
 public function __construct($paths = [])
 {
     if (empty($paths)) {
         $this->data = $this->getDefaults();
     } else {
         !is_array($paths) || !is_string(key($paths)) ? parent::__construct($paths) : ($this->data = array_replace_recursive($this->getDefaults(), $paths));
     }
 }
Ejemplo n.º 2
0
 /**
  * Just hardcoded path to config.
  */
 public function __construct()
 {
     $io = new IO();
     if (file_exists($io->configurationPath)) {
         parent::__construct($io->configurationPath);
     } else {
         parent::__construct($io->configurationReferencePath);
     }
 }
Ejemplo n.º 3
0
 /**
  * Loads a supported configuration file format.
  *
  * @param  string|array|null $path
  *   If empty then it does not load an object
  *
  * @throws EmptyDirectoryException    If `$path` is an empty directory
  */
 public function __construct($path = NULL)
 {
     if (!empty($path)) {
         parent::__construct($path);
     }
 }
 public function __construct($path)
 {
     parent::__construct($path);
     $this->path = $path;
     $this->checkRequirements($this->getRequirements());
 }
Ejemplo n.º 5
0
 public function __construct($path = null, $env = null)
 {
     $this->loadEnvironment();
     parent::__construct($path);
 }