diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-06 19:02:46 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-06 19:02:46 -0700 |
commit | b808300d9b9e79234565be52a8cce5bdc458f8ea (patch) | |
tree | 2d667baa7f09305da914ffdfbd6359ab020079a9 /lib/SendGrid/Config.php | |
parent | 988698f5b2f114d0a62472b1012edac20e37eca1 (diff) | |
download | php-http-client-b808300d9b9e79234565be52a8cce5bdc458f8ea.zip php-http-client-b808300d9b9e79234565be52a8cce5bdc458f8ea.tar.gz php-http-client-b808300d9b9e79234565be52a8cce5bdc458f8ea.tar.bz2 |
Version Bump v3.0.0: Made the Request and Response variables non-redundant. e.g. request.requestBody becomes request.bodyv3.0.0
Diffstat (limited to 'lib/SendGrid/Config.php')
-rw-r--r-- | lib/SendGrid/Config.php | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/lib/SendGrid/Config.php b/lib/SendGrid/Config.php deleted file mode 100644 index 5c4383e..0000000 --- a/lib/SendGrid/Config.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php -/** - * Environment Variable Configuration - * - * PHP version 5.2 - * - * @author Matt Bernier <dx@sendgrid.com> - * @author Elmer Thomas <dx@sendgrid.com> - * @copyright 2016 SendGrid - * @license https://opensource.org/licenses/MIT The MIT License - * @version GIT: <git_id> - * @link http://packagist.org/packages/sendgrid/php-http-client - */ -namespace SendGrid; - -/** - * Sets environment variables. - */ -class Config -{ - /** - * Setup the environment variables - * - * @param string $base_path path to your config file. - * @param string $config_filename name of the config file. - */ - function __construct($base_path, $config_filename) - { - $handle = fopen($base_path.'/'.$config_filename, "r"); - while (($line = fgets($handle)) !== false) { - putenv(trim(preg_replace('/\s+/', ' ', $line))); - } - fclose($handle); - } -} -?> |