protected function get(string $key)
    {
        if (!array_key_exists($key, $this->config)) throw new InvalidConfigException("Your configuration doesn't have a value for the key `$key`");
        return $this->config[$key];
    }
protected function get(string $key)
    {
        if (!array_key_exists($key, $this->config)) throw new InvalidConfigException("Your configuration doesn't have a value for the key `$key`");
        return $this->config[$key];
    }
protected function get ( string $ key ) { if ( ! array_key_exists ( $ key , $ this -> config ) ) throw new InvalidConfigException ( "Your configuration doesn't have a value for the key `$key`" ) ; return $ this -> config [ $ key ] ; }
An internal method that ensures an error is thrown if the given key is not found in the configuration.

@param string $key The key of the configuration value to get
@return mixed Returns the configuration value at `$key`
@throws InvalidConfigException in the even that a given config key isn't loaded
An internal method that ensures an error is thrown if the given key is not found in the configuration .