protected getKeyFromEnv ( ) : string | ||
return | string | The key from the environment |
protected function getKeyFromEnv()
{
$this->loadDotEnv();
$key = getenv(self::KEY_ENV_VARIABLE);
if (!$key) {
throw new MissingKeyException(self::KEY_ENV_VARIABLE);
}
return $key;
}