src/Config/BaseConfig.php
public function getValue(array $keys, $default = null)
    {
        $config = $this->config;
        $pointer = &$config;
        foreach ($keys as $key) {
            if (!array_key_exists($key, $pointer)) {
                if ($default === null) {
                    throw new InvalidArgumentException(sprintf(
                        'Key "%s" does not exist',
                        implode('.', $keys)
                    ));
                }
                return $default;
            }
            $pointer = &$pointer[$key];
        }
        return $pointer;
    }
public function getValue(array $keys, $default = null)
    {
        $config = $this->config;
        $pointer = &$config;
        foreach ($keys as $key) {
            if (!array_key_exists($key, $pointer)) {
                if ($default === null) {
                    throw new InvalidArgumentException(sprintf(
                        'Key "%s" does not exist',
                        implode('.', $keys)
                    ));
                }
                return $default;
            }
            $pointer = &$pointer[$key];
        }
        return $pointer;
    }
public function getValue ( array $ keys , $ default = null ) { $ config = $ this -> config ; $ pointer = & $ config ; foreach ( $ keys as $ key ) { if ( ! array_key_exists ( $ key , $ pointer ) ) { if ( $ default === null ) { throw new InvalidArgumentException ( sprintf ( 'Key "%s" does not exist' , implode ( '.' , $ keys ) ) ) ; } return $ default ; } $ pointer = & $ pointer [ $ key ] ; } return $ pointer ; }
Returns value by key. You can supply default value for when the key is missing.
Without default value exception is thrown for nonexistent keys.

@param string[] $keys
@param mixed $default
@return mixed
Returns value by key . You can supply default value for when the key is missing . Without default value exception is thrown for nonexistent keys .