public function get($key = null, $default = null)
    {
        if (!isset($key)) {
            return $this->config;
        }

        if (array_key_exists($key, $this->config)) {
            return $this->config[$key];
        }

        return $default;
    }
public function get($key = null, $default = null)
    {
        if (!isset($key)) {
            return $this->config;
        }

        if (array_key_exists($key, $this->config)) {
            return $this->config[$key];
        }

        return $default;
    }
public function get ( $ key = null , $ default = null ) { if ( ! isset ( $ key ) ) { return $ this -> config ; } if ( array_key_exists ( $ key , $ this -> config ) ) { return $ this -> config [ $ key ] ; } return $ default ; }
Returns a value from an array of configuration options
@param string $key
@param mixed $default
@return mixed
Returns a value from an array of configuration options