diff --git a/src/components/DbSettings.php b/src/components/DbSettings.php index 6330aef..cd6c31a 100644 --- a/src/components/DbSettings.php +++ b/src/components/DbSettings.php @@ -104,4 +104,14 @@ protected function setValue($section, $key, $value) } return $this->insertValue($section, $key, $value); } + + /** + * {@inheritDoc} + * + * @param mixed $defaultValue Default value if $key not exists + */ + public function get($section, $key, $defaultValue = null) + { + return parent::get($section, $key) ?? $defaultValue; + } } \ No newline at end of file