IcingaObject: allow to directly set dict var key

This commit is contained in:
Thomas Gelf 2016-02-21 10:10:24 +01:00
parent f2f748738e
commit 72ffe336be
1 changed files with 4 additions and 0 deletions

View File

@ -185,6 +185,10 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
$this->vars()->set($k, $v);
}
return $this;
} elseif (substr($key, 0, 5) === 'vars.') {
//TODO: allow for deep keys
$this->vars()->set(substr($k, 5), $v);
return $this;
}
if ($this->propertyIsBoolean($key) && $value !== null) {