Never allow Setting facade to lookup env

This commit is contained in:
James Brooks
2015-11-21 22:53:16 +00:00
parent 61ada5c07d
commit 4c9cae3142

View File

@@ -46,11 +46,10 @@ class Repository
*
* @param string $name
* @param string|null $default
* @param bool $checkEnv
*
* @return string|null
*/
public function get($name, $default = null, $checkEnv = true)
public function get($name, $default = null)
{
// if we've not loaded the settings, load them now
if (!$this->settings) {
@@ -62,11 +61,6 @@ class Repository
return $this->settings[$name];
}
// fallback to getenv if allowed to
if ($checkEnv && ($this->settings[$name] = env(strtoupper($name)))) {
return $this->settings[$name];
}
return $default;
}