[icinga-checkins] icinga.org: icingaweb2-module-director/feature/icinga1-config-12919: IcingaObject(Legacy): Make getLegacyObjectType public

git at icinga.org git at icinga.org
Wed Oct 19 13:17:43 CEST 2016


Module: icingaweb2-module-director
Branch: feature/icinga1-config-12919
Commit: 244241f4d837f53c32c8636ab89c4482679b2197
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=244241f4d837f53c32c8636ab89c4482679b2197

Author: Markus Frosch <markus.frosch at icinga.com>
Date:   Fri Oct 14 11:07:37 2016 +0200

IcingaObject(Legacy): Make getLegacyObjectType public

refs #12919

---

 library/Director/Objects/IcingaCommand.php |    2 +-
 library/Director/Objects/IcingaObject.php  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/library/Director/Objects/IcingaCommand.php b/library/Director/Objects/IcingaCommand.php
index 8563add..e847c72 100644
--- a/library/Director/Objects/IcingaCommand.php
+++ b/library/Director/Objects/IcingaCommand.php
@@ -177,7 +177,7 @@ class IcingaCommand extends IcingaObject
         self::$pluginDir = $pluginDir;
     }
 
-    protected function getLegacyObjectType()
+    public function getLegacyObjectType()
     {
         // there is only one type of command in Icinga 1.x
         return 'command';
diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php
index d3265fa..5541574 100644
--- a/library/Director/Objects/IcingaObject.php
+++ b/library/Director/Objects/IcingaObject.php
@@ -1893,7 +1893,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
         }
     }
 
-    protected function getLegacyObjectType()
+    public function getLegacyObjectType()
     {
         return strtolower($this->getType());
     }



More information about the icinga-checkins mailing list