From 776cd982535d9adc6203f763909a8a7e3db0058c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 16 Oct 2015 18:08:18 +0200 Subject: [PATCH] CoreApi: provide active stage name --- library/Director/Core/CoreApi.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Director/Core/CoreApi.php b/library/Director/Core/CoreApi.php index a8f9947b..f07f08f2 100644 --- a/library/Director/Core/CoreApi.php +++ b/library/Director/Core/CoreApi.php @@ -42,6 +42,11 @@ class CoreApi return $this->client->get('config/packages')->getResult('name'); } + public function getActiveStageName() + { + return current($this->listModuleStages('director', true)); + } + public function listModuleStages($name, $active = null) { $modules = $this->getModules();