2015-07-02 15:28:41 +02:00
|
|
|
<?php
|
|
|
|
|
2017-07-26 11:49:51 +02:00
|
|
|
use Icinga\Application\Modules\Module;
|
2017-10-09 15:23:27 +02:00
|
|
|
use dipl\Loader\CompatLoader;
|
2016-03-23 19:35:09 +01:00
|
|
|
|
2017-07-26 11:49:51 +02:00
|
|
|
if (version_compare(PHP_VERSION, '5.4.0') < 0) {
|
|
|
|
include __DIR__ . '/run-php5.3.php';
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2016-02-17 16:41:46 +01:00
|
|
|
$prefix = '\\Icinga\\Module\\Director\\';
|
|
|
|
|
2017-07-26 11:49:51 +02:00
|
|
|
/** @var Module $this */
|
2015-11-17 16:53:41 +01:00
|
|
|
$this->provideHook('monitoring/HostActions');
|
2015-11-26 18:55:00 +01:00
|
|
|
$this->provideHook('monitoring/ServiceActions');
|
2016-02-17 10:49:28 +01:00
|
|
|
|
2016-02-17 16:41:46 +01:00
|
|
|
$this->provideHook('director/ImportSource', $prefix . 'Import\\ImportSourceSql');
|
|
|
|
$this->provideHook('director/ImportSource', $prefix . 'Import\\ImportSourceLdap');
|
|
|
|
$this->provideHook('director/ImportSource', $prefix . 'Import\\ImportSourceCoreApi');
|
|
|
|
|
2016-03-06 19:12:04 +01:00
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeArray');
|
2016-05-19 14:59:25 +02:00
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeBoolean');
|
2016-02-17 16:41:46 +01:00
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeDatalist');
|
2016-05-19 15:04:10 +02:00
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeNumber');
|
2016-09-23 15:30:47 +02:00
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeDirectorObject');
|
2016-02-17 16:41:46 +01:00
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeSqlQuery');
|
2016-05-19 15:04:10 +02:00
|
|
|
$this->provideHook('director/DataType', $prefix . 'DataType\\DataTypeString');
|
2016-02-17 16:41:46 +01:00
|
|
|
|
2016-02-18 23:24:11 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierLowercase');
|
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierRegexReplace');
|
2016-12-07 14:13:25 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierRegexSplit');
|
2016-02-18 23:24:11 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierReplace');
|
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierStripDomain');
|
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierSubstring');
|
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierUppercase');
|
2016-03-08 22:30:45 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierMap');
|
2016-03-10 14:19:52 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierSplit');
|
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierJoin');
|
2016-03-08 22:10:50 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierGetHostByName');
|
2016-10-03 17:28:41 +02:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierDnsRecords');
|
2016-03-10 11:01:35 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierExtractFromDN');
|
2016-03-14 12:46:44 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierFromAdSid');
|
2016-03-18 17:16:34 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierFromLatin1');
|
2016-05-18 22:01:55 +02:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierBitmask');
|
2016-07-20 12:28:40 +02:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierMakeBoolean');
|
2016-07-28 16:56:16 +02:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierJsonDecode');
|
2016-09-14 21:35:51 +02:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierToInt');
|
2017-03-09 08:46:18 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierLConfCustomVar');
|
2017-04-20 12:33:54 +02:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierArrayFilter');
|
2017-05-03 10:39:49 +02:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierCombine');
|
2017-11-17 01:31:43 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierXlsNumericIp');
|
2017-11-24 10:29:41 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierURLEncode');
|
2017-11-24 10:58:09 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierUpperCaseFirst');
|
2018-01-25 12:52:12 +01:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierRejectOrSelect');
|
2018-09-05 13:11:09 +02:00
|
|
|
$this->provideHook('director/PropertyModifier', $prefix . 'PropertyModifier\\PropertyModifierArrayElementByPosition');
|
2016-03-23 19:35:09 +01:00
|
|
|
|
2016-04-21 13:27:39 +02:00
|
|
|
$this->provideHook('director/Job', $prefix . 'Job\\HousekeepingJob');
|
2016-04-22 09:53:59 +02:00
|
|
|
$this->provideHook('director/Job', $prefix . 'Job\\ConfigJob');
|
|
|
|
$this->provideHook('director/Job', $prefix . 'Job\\ImportJob');
|
|
|
|
$this->provideHook('director/Job', $prefix . 'Job\\SyncJob');
|
2016-10-14 23:14:04 +02:00
|
|
|
|
2016-12-01 15:08:04 +01:00
|
|
|
$this->provideHook('cube/Actions', 'CubeLinks');
|
2017-06-22 02:03:54 +02:00
|
|
|
|
|
|
|
require_once __DIR__ . '/library/vendor/ipl/Loader/CompatLoader.php';
|
|
|
|
CompatLoader::delegateLoadingToIcingaWeb($this->app);
|