From: Michael Wallner Date: Fri, 1 May 2015 10:21:39 +0000 (+0200) Subject: default APP_ENVRIONMENT to localhost X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8e9bbe581c9ee4cdd538bf798e5d72780ef82437;p=pharext%2Fpharext.org default APP_ENVRIONMENT to localhost --- diff --git a/app/bootstrap/config.php b/app/bootstrap/config.php index a8fe7bb..cbf70d2 100644 --- a/app/bootstrap/config.php +++ b/app/bootstrap/config.php @@ -1,15 +1,19 @@ share(Config::class) ->define(Config::class, [ ":array" => parse_ini_file(__DIR__."/../config.ini", true), - ":section" => getenv("APP_ENVIRONMENT") + ":section" => APP_ENVIRONMENT ]) ->prepare(Config::class, function(Config $config) { $credentials = parse_ini_file(__DIR__."/../credentials.ini", true); - foreach (new Config($credentials, getenv("APP_ENVIRONMENT")) as $app => $creds) { + foreach (new Config($credentials, APP_ENVIRONMENT) as $app => $creds) { /* one level down should suffice, i.e. $config->github->client = {id,secret,scope} */ if ($creds instanceof Config) { foreach ($creds as $key => $val) {