/** {@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)); } }
/** * 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); } }
/** * 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()); }
public function __construct($path = null, $env = null) { $this->loadEnvironment(); parent::__construct($path); }