configuration.php: Abort early if the ipl is not available

This commit is contained in:
Johannes Meyer 2020-05-13 10:13:38 +02:00
parent 410a4e8be5
commit dcfed87d84

View file

@ -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',