CoreApi: provide active stage name

This commit is contained in:
Thomas Gelf 2015-10-16 18:08:18 +02:00
parent 3d20e55748
commit 776cd98253
1 changed files with 5 additions and 0 deletions

View File

@ -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();