private function getMandatoryKey($key,Array $a,$configName='config')
    {
        if (!array_key_exists($key,$a))
        {
            throw new \Tripod\Exceptions\ConfigException("Mandatory config key [$key] is missing from $configName");
        }
        return $a[$key];
    }
private function getMandatoryKey($key,Array $a,$configName='config')
    {
        if (!array_key_exists($key,$a))
        {
            throw new \Tripod\Exceptions\ConfigException("Mandatory config key [$key] is missing from $configName");
        }
        return $a[$key];
    }
private function getMandatoryKey ( $ key , Array $ a , $ configName = 'config' ) { if ( ! array_key_exists ( $ key , $ a ) ) { throw new \ Tripod \ Exceptions \ ConfigException ( "Mandatory config key [$key] is missing from $configName" ) ; } return $ a [ $ key ] ; }
Returns the value of the supplied key or throws an error, if missing
@param string $key
@param array $a
@param string $configName
@return mixed
@throws \Tripod\Exceptions\ConfigException
Returns the value of the supplied key or throws an error if missing