From dcfed87d84443c7dd845dc278d339e4f3aaa1dbf Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 13 May 2020 10:13:38 +0200 Subject: [PATCH] configuration.php: Abort early if the ipl is not available --- configuration.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configuration.php b/configuration.php index a3922b4f..bb5050f3 100644 --- a/configuration.php +++ b/configuration.php @@ -4,12 +4,19 @@ namespace Icinga\Module\Icingadb { + use Icinga\Application\Logger; use Icinga\Authentication\Auth; /** @var \Icinga\Application\Modules\Module $this */ $this->provideSetupWizard('Icinga\Module\Icingadb\Setup\IcingaDbWizard'); + if (! $this::exists('ipl')) { + // TODO: Replace this once we have proper dependency management + Logger::warning(t('Module "ipl" is not enabled. This module is mandatory for Icinga DB Web')); + return; + } + /** @var \Icinga\Application\Modules\Module $this */ $section = $this->menuSection('Icinga DB', [ 'icon' => 'database',