acquia/acquia-sdk-php — pull request #59 by webbj74 (2014-06-05 03:41:53+00:00)
Title: Use CloudEnvironment::getenv method when looking for Acquia Hosting variables

This PR builds off of the work @jacobbednarz provided in #58. Because Acquia Hosting inserts keys into $_ENV directly (when php_sapi() == CLI), getenv does not reliably get Acquia Hosting special vars. I added a wrapper to check getenv, $_ENV, and $_SERVER for a key and return its value.