diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:28:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:28:59 +0000 |
commit | 978a1651bac3faf5e91ddba327bf39aeb6a4cb63 (patch) | |
tree | f0d1fee61877df200ccfb1c0af58a39cd551fb46 /library/Reporting/Cli | |
parent | Initial commit. (diff) | |
download | icingaweb2-module-reporting-978a1651bac3faf5e91ddba327bf39aeb6a4cb63.tar.xz icingaweb2-module-reporting-978a1651bac3faf5e91ddba327bf39aeb6a4cb63.zip |
Adding upstream version 0.10.0.upstream/0.10.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'library/Reporting/Cli')
-rw-r--r-- | library/Reporting/Cli/Command.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/library/Reporting/Cli/Command.php b/library/Reporting/Cli/Command.php new file mode 100644 index 0000000..a89f77b --- /dev/null +++ b/library/Reporting/Cli/Command.php @@ -0,0 +1,23 @@ +<?php +// Icinga Reporting | (c) 2018 Icinga GmbH | GPLv2 + +namespace Icinga\Module\Reporting\Cli; + +use Icinga\Application\Icinga; +use Icinga\Application\Version; +use Icinga\Module\Reporting\Database; + +class Command extends \Icinga\Cli\Command +{ + use Database; + + // Fix Web 2 issue where $configs is not properly initialized + protected $configs = []; + + public function init() + { + if (version_compare(Version::VERSION, '2.7.0', '<')) { + Icinga::app()->getModuleManager()->loadEnabledModules(); + } + } +} |