diff --git a/library/Director/IcingaConfig/IcingaCommandsConfigFile.php b/library/Director/IcingaConfig/IcingaCommandsConfigFile.php deleted file mode 100644 index 57579ebb..00000000 --- a/library/Director/IcingaConfig/IcingaCommandsConfigFile.php +++ /dev/null @@ -1,8 +0,0 @@ -prepend("library \"methods\"\n\n"); + } $file->addObjects($objects); $this->files[$type . 's.conf'] = $file; } diff --git a/library/Director/IcingaConfig/IcingaConfigFile.php b/library/Director/IcingaConfig/IcingaConfigFile.php index 16c2150f..e8c80df3 100644 --- a/library/Director/IcingaConfig/IcingaConfigFile.php +++ b/library/Director/IcingaConfig/IcingaConfigFile.php @@ -8,6 +8,12 @@ class IcingaConfigFile { protected $content; + public function prepend($content) + { + $this->content = $content . $this->content; + return $this; + } + public function getContent() { return $this->content; diff --git a/library/Director/IcingaConfig/IcingaHostsConfigFile.php b/library/Director/IcingaConfig/IcingaHostsConfigFile.php deleted file mode 100644 index 7583e82b..00000000 --- a/library/Director/IcingaConfig/IcingaHostsConfigFile.php +++ /dev/null @@ -1,7 +0,0 @@ -