mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
ImportRowModifier: fix class instantiation
This commit is contained in:
parent
20ca3f2e54
commit
1999de2707
@ -35,8 +35,9 @@ class ImportRowModifier extends DbObjectWithSettings
|
|||||||
public function getInstance()
|
public function getInstance()
|
||||||
{
|
{
|
||||||
if ($this->hookInstance === null) {
|
if ($this->hookInstance === null) {
|
||||||
|
$class = $this->get('provider_class');
|
||||||
/** @var PropertyModifierHook $obj */
|
/** @var PropertyModifierHook $obj */
|
||||||
$obj = new $this->get('provider_class');
|
$obj = new $class;
|
||||||
$obj->setSettings($this->getSettings());
|
$obj->setSettings($this->getSettings());
|
||||||
$obj->setTargetProperty($this->get('target_property'));
|
$obj->setTargetProperty($this->get('target_property'));
|
||||||
$obj->setDb($this->connection);
|
$obj->setDb($this->connection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user