diff options
Diffstat (limited to 'lib/config.php')
-rw-r--r-- | lib/config.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/config.php b/lib/config.php new file mode 100644 index 0000000..2608700 --- /dev/null +++ b/lib/config.php @@ -0,0 +1,12 @@ +<?php +namespace SendGrid; +class Config{ + 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); + } +} +?> |