1
0
Fork 0

Add default config source to Config class

pull/6743/head
Zachary Flower 2017-10-13 22:38:05 -06:00
parent edece864e7
commit 9c109dfea1
1 changed files with 11 additions and 0 deletions

View File

@ -84,6 +84,7 @@ class Config
private $configSource; private $configSource;
/** @var ConfigSourceInterface */ /** @var ConfigSourceInterface */
private $authConfigSource; private $authConfigSource;
private $defaultsConfigSource;
private $useEnvironment; private $useEnvironment;
private $warnedHosts = array(); private $warnedHosts = array();
@ -120,6 +121,16 @@ class Config
return $this->authConfigSource; return $this->authConfigSource;
} }
public function setDefaultsConfigSource(ConfigSourceInterface $source)
{
$this->defaultsConfigSource = $source;
}
public function getDefaultsConfigSource()
{
return $this->defaultsConfigSource;
}
/** /**
* Merges new config values with the existing ones (overriding) * Merges new config values with the existing ones (overriding)
* *