mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
ImportRowModifier: no more ConfigurationError
This commit is contained in:
parent
75a0797438
commit
b3afe670c8
@ -2,10 +2,10 @@
|
||||
|
||||
namespace Icinga\Module\Director\Objects;
|
||||
|
||||
use Icinga\Exception\ConfigurationError;
|
||||
use Icinga\Module\Director\Data\Db\DbObjectWithSettings;
|
||||
use Icinga\Module\Director\Hook\PropertyModifierHook;
|
||||
use Icinga\Module\Director\Objects\Extension\PriorityColumn;
|
||||
use RuntimeException;
|
||||
|
||||
class ImportRowModifier extends DbObjectWithSettings
|
||||
{
|
||||
@ -39,7 +39,10 @@ class ImportRowModifier extends DbObjectWithSettings
|
||||
$class = $this->get('provider_class');
|
||||
/** @var PropertyModifierHook $obj */
|
||||
if (! class_exists($class)) {
|
||||
throw new ConfigurationError('Cannot instantiate Property modifier %s', $class);
|
||||
throw new RuntimeException(sprintf(
|
||||
'Cannot instantiate Property modifier %s',
|
||||
$class
|
||||
));
|
||||
}
|
||||
$obj = new $class;
|
||||
$obj->setSettings($this->getSettings());
|
||||
|
Loading…
x
Reference in New Issue
Block a user