protected function iterateConfig(string $key)
    {
        $result = $this->config;

        foreach (explode('.', $key) as $p) {
            if (!isset($result[$p])) {
                return null;
            }

            $result = $result[$p];
        }

        return $result;
    }
protected function iterateConfig(string $key)
    {
        $result = $this->config;

        foreach (explode('.', $key) as $p) {
            if (!isset($result[$p])) {
                return null;
            }

            $result = $result[$p];
        }

        return $result;
    }
protected function iterateConfig ( string $ key ) { $ result = $ this -> config ; foreach ( explode ( '.' , $ key ) as $ p ) { if ( ! isset ( $ result [ $ p ] ) ) { return null ; } $ result = $ result [ $ p ] ; } return $ result ; }
Iterate through configuration.

@param  string $key
@return mixed
Iterate through configuration .