From 70aceb28b52e5994b268100c0707f2d33a7971da Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Tue, 4 Aug 2020 12:26:33 +0300 Subject: [PATCH] Get show omens token from ENV variable --- src/DrupalEnvDetector.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/DrupalEnvDetector.php b/src/DrupalEnvDetector.php index e0984bb..cf8df97 100644 --- a/src/DrupalEnvDetector.php +++ b/src/DrupalEnvDetector.php @@ -131,8 +131,10 @@ public function getConfiguration() : array { $conf['config_directories'] = (array) $this->config_directories; } - if (isset($_GET['_show_omens']) && $_GET['_show_omens'] == 'bakra-hispul') { - $this->printConfiguration($conf); + if (getenv('OMEN_TOKEN') && isset($_GET['_show_omens'])) { + if ($_GET['_show_omens'] == getenv('OMEN_TOKEN')) { + $this->printConfiguration($conf); + } } return $conf;