diff --git a/library/Icinga/Data/ResourceFactory.php b/library/Icinga/Data/ResourceFactory.php index e85413615..1c443f9d0 100644 --- a/library/Icinga/Data/ResourceFactory.php +++ b/library/Icinga/Data/ResourceFactory.php @@ -4,8 +4,9 @@ namespace Icinga\Data; -use Icinga\Exception\ProgrammingError; use Zend_Config; +use Icinga\Application\Config; +use Icinga\Exception\ProgrammingError; use Icinga\Util\ConfigAwareFactory; use Icinga\Exception\ConfigurationError; use Icinga\Data\Db\DbConnection; @@ -120,6 +121,9 @@ class ResourceFactory implements ConfigAwareFactory case 'file': $resource = new FileReader($config); break; + case 'ini': + $resource = Config::fromIni($config->ini); + break; default: throw new ConfigurationError( 'Unsupported resource type "%s"',