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);
|
$this->imports()->set($value);
|
||||||
return $this;
|
return $this;
|
||||||
|
|
||||||
|
} elseif ($key === 'arguments') {
|
||||||
|
if (is_object($value)) {
|
||||||
|
foreach ($value as $arg => $val) {
|
||||||
|
$this->arguments()->set($arg, $val);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $this;
|
||||||
|
|
||||||
} elseif ($key === 'vars') {
|
} elseif ($key === 'vars') {
|
||||||
$value = (array) $value;
|
$value = (array) $value;
|
||||||
$unset = array();
|
$unset = array();
|
||||||
|
|
Loading…
Reference in New Issue