From 6a0da104739139e05c2aad616686bde8e43801a7 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 22 Jun 2021 12:50:59 +0200 Subject: [PATCH] Manager: Don't register the ipl and reactbundle module Both are superseded by their respective library. This way we make sure there are no competing auto loaders. --- library/Icinga/Application/Modules/Manager.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Application/Modules/Manager.php b/library/Icinga/Application/Modules/Manager.php index d48704e14..f137c196e 100644 --- a/library/Icinga/Application/Modules/Manager.php +++ b/library/Icinga/Application/Modules/Manager.php @@ -228,7 +228,11 @@ class Manager } else { $module = new Module($this->app, $name, $basedir); } - $module->register(); + + if ($name !== 'ipl' && $name !== 'reactbundle') { + $module->register(); + } + $this->loadedModules[$name] = $module; return $this; }