mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
IcingaObject: allow to access arguments
This commit is contained in:
parent
81a1706b46
commit
ed3624239b
@ -110,6 +110,14 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
$this->imports()->set($value);
|
||||
return $this;
|
||||
|
||||
} elseif ($key === 'arguments') {
|
||||
if (is_object($value)) {
|
||||
foreach ($value as $arg => $val) {
|
||||
$this->arguments()->set($arg, $val);
|
||||
}
|
||||
}
|
||||
return $this;
|
||||
|
||||
} elseif ($key === 'vars') {
|
||||
$value = (array) $value;
|
||||
$unset = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user