From 196b6a4875f6034886f46414621cdb9ef4164682 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 9 Dec 2014 15:38:13 +0100 Subject: [PATCH] Ensure that Zend is loaded when showing status information in the CLI fixes #7869 --- library/Icinga/Application/ApplicationBootstrap.php | 2 +- modules/monitoring/application/clicommands/ListCommand.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Application/ApplicationBootstrap.php b/library/Icinga/Application/ApplicationBootstrap.php index 7f1667e5b..6de3081ba 100644 --- a/library/Icinga/Application/ApplicationBootstrap.php +++ b/library/Icinga/Application/ApplicationBootstrap.php @@ -351,7 +351,7 @@ abstract class ApplicationBootstrap * * @return $this */ - protected function setupZendAutoloader() + public function setupZendAutoloader() { require_once 'Zend/Loader/Autoloader.php'; diff --git a/modules/monitoring/application/clicommands/ListCommand.php b/modules/monitoring/application/clicommands/ListCommand.php index e6b86f4ef..a4f1d05f1 100644 --- a/modules/monitoring/application/clicommands/ListCommand.php +++ b/modules/monitoring/application/clicommands/ListCommand.php @@ -25,6 +25,7 @@ class ListCommand extends Command public function init() { + $this->app->setupZendAutoloader(); $this->backend = Backend::createBackend($this->params->shift('backend')); $this->dumpSql = $this->params->shift('showsql'); }