src/Graby.php
public function getConfig($key)
    {
        if (!isset($this->config[$key])) {
            throw new \Exception(sprintf('No config found for key: "%s"', $key));
        }

        return $this->config[$key];
    }
public function getConfig($key)
    {
        if (!isset($this->config[$key])) {
            throw new \Exception(sprintf('No config found for key: "%s"', $key));
        }

        return $this->config[$key];
    }
public function getConfig ( $ key ) { if ( ! isset ( $ this -> config [ $ key ] ) ) { throw new \ Exception ( sprintf ( 'No config found for key: "%s"' , $ key ) ) ; } return $ this -> config [ $ key ] ; }
Return a config.

@param string $key

@return mixed
Return a config .