public function get($key)
    {
        $parts = explode('.', $key);
        $offset = $this->config;

        foreach($parts as $part) {
            if(!isset($offset[$part])) return null;

            $offset = $offset[$part];
        }

        return $offset;
    }
public function get($key)
    {
        $parts = explode('.', $key);
        $offset = $this->config;

        foreach($parts as $part) {
            if(!isset($offset[$part])) return null;

            $offset = $offset[$part];
        }

        return $offset;
    }
public function get ( $ key ) { $ parts = explode ( '.' , $ key ) ; $ offset = $ this -> config ; foreach ( $ parts as $ part ) { if ( ! isset ( $ offset [ $ part ] ) ) return null ; $ offset = $ offset [ $ part ] ; } return $ offset ; }
Get configuration by key

@param $key
@return mixed
Get configuration by key