mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
IcingaObject: a few more hardcoded class names
This commit is contained in:
parent
d0359683cd
commit
75bbf9c7da
@ -931,9 +931,13 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
$prefix = 'Director';
|
||||
}
|
||||
|
||||
// TODO: Provide a more sophisticated solution
|
||||
if ($type === 'hostgroup') {
|
||||
// TODO: Provide a more sophisticated solution
|
||||
$type = 'hostGroup';
|
||||
} elseif ($type === 'usergroup') {
|
||||
$type = 'userGroup';
|
||||
} elseif ($type === 'servicegroup') {
|
||||
$type = 'serviceGroup';
|
||||
}
|
||||
|
||||
return 'Icinga\\Module\\Director\\Objects\\' . $prefix . ucfirst($type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user