2015-07-02 15:28:41 +02:00
|
|
|
<?php
|
|
|
|
|
2017-07-26 11:49:51 +02:00
|
|
|
use Icinga\Application\Modules\Module;
|
2021-07-13 09:50:17 +02:00
|
|
|
use Icinga\Module\Director\Application\DependencyChecker;
|
2016-03-23 19:35:09 +01:00
|
|
|
|
2019-09-19 16:32:36 +02:00
|
|
|
if (version_compare(PHP_VERSION, '5.6.0') < 0) {
|
2017-07-26 11:49:51 +02:00
|
|
|
include __DIR__ . '/run-php5.3.php';
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-09-19 16:32:36 +02:00
|
|
|
/** @var Module $this */
|
2021-07-13 09:50:17 +02:00
|
|
|
$checker = new DependencyChecker($this->app);
|
|
|
|
if (! $checker->satisfiesDependencies($this)) {
|
2019-09-17 15:05:55 +02:00
|
|
|
include __DIR__ . '/run-missingdeps.php';
|
|
|
|
return;
|
2019-09-11 21:49:02 +02:00
|
|
|
}
|
2019-09-19 16:32:36 +02:00
|
|
|
|
|
|
|
include __DIR__ . '/register-hooks.php';
|