From b6ee15a37fb3f81f45f47c95e12c513d5404dec2 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 22 Oct 2013 13:47:31 +0000 Subject: [PATCH] Allow access to "route" discovered by CLI Loader --- library/Icinga/Cli/Loader.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/library/Icinga/Cli/Loader.php b/library/Icinga/Cli/Loader.php index d87e7eb56..17c87bbe0 100644 --- a/library/Icinga/Cli/Loader.php +++ b/library/Icinga/Cli/Loader.php @@ -103,6 +103,21 @@ class Loader exit(1); } + public function getModuleName() + { + return $this->moduleName; + } + + public function getCommandName() + { + return $this->commandName; + } + + public function getActionName() + { + return $this->actionName; + } + public function getCommandInstance($command) { if (! array_key_exists($command, $this->commandInstances)) {