From f81489d0c3e65d66db0b893ca049b23131f3251a Mon Sep 17 00:00:00 2001 From: Chris Barton Date: Tue, 15 May 2018 14:27:16 +0930 Subject: [PATCH] Add support for ua_middleware service. (#31) * Add support for ua_middleware service. * Remove spaces at end of line and file typo with auth_file env. * More spaces to fix * Opt for just one file for auth. --- src/Handler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Handler.php b/src/Handler.php index 803905e..0e2dcf3 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -157,6 +157,9 @@ public function modifySettingsFile() " \$settings['container_yamls'][] = 'modules/contrib/redis/example.services.yml';\n" . " }\n" . "}\n" . + "\$settings['ua_middleware_service'] = array(\n" . + " 'auth' => getenv('UA_MIDDLEWARE_AUTH_FILE') ? file_get_contents(getenv('UA_MIDDLEWARE_AUTH_FILE')) : getenv('UA_MIDDLEWARE_AUTH'),\n" . + ");\n" . "/**\n * END SHEPHERD CONFIG\n */\n" . "\n" . "/**\n * START LOCAL CONFIG\n */\n" .