src/Service/Settings.php
public function get(...$names)
    {
        if (count($names) === 1 && is_array($names[0])) {
            $names = $names[0];
        }
        if (count($names) >= 1) {
            $setting = $this->getConfig();
            foreach ($names as $name) {
                $setting = $setting->get($name);
            }
            return $setting;
        } else {
            throw new InvalidArgumentException();
        }
    }
public function get(...$names)
    {
        if (count($names) === 1 && is_array($names[0])) {
            $names = $names[0];
        }
        if (count($names) >= 1) {
            $setting = $this->getConfig();
            foreach ($names as $name) {
                $setting = $setting->get($name);
            }
            return $setting;
        } else {
            throw new InvalidArgumentException();
        }
    }
Retrieve a value and return $default if there is no element set.

@param array ...$name
@return mixed