|
@@ -76,7 +76,7 @@ class LuticateApplication implements MessageComponentInterface
|
76
|
76
|
self::$_app = $this;
|
77
|
77
|
}
|
78
|
78
|
|
79
|
|
- public function getSetting($name)
|
|
79
|
+ public function getSetting($name, $default = null)
|
80
|
80
|
{
|
81
|
81
|
$value = getenv("lu_setting_" . $name);
|
82
|
82
|
if ($value === false) {
|
|
@@ -84,7 +84,7 @@ class LuticateApplication implements MessageComponentInterface
|
84
|
84
|
$value = $this->_config['settings'][$name];
|
85
|
85
|
}
|
86
|
86
|
else {
|
87
|
|
- $value = null;
|
|
87
|
+ $value = $default;
|
88
|
88
|
}
|
89
|
89
|
}
|
90
|
90
|
return $value;
|