Gets the environment by matching a given host to a config.
static public getEnvironment ( AssocArray $config, String $givenHost ) : String | ||
$config | AssocArray | Configuration mapping an environment => hosts |
$givenHost | String | A string representing the host. |
return | String | Matched environment from the config. |