Skip to content

Commit

Permalink
Resources: Support type 'ini' yet only in the resources.ini
Browse files Browse the repository at this point in the history
Configuring the resource type 'ini' via the web interface is not yet possible.
  • Loading branch information
lippserd committed Oct 20, 2014
1 parent cee261b commit 79ade94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion library/Icinga/Data/ResourceFactory.php
Expand Up @@ -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;
Expand Down Expand Up @@ -120,6 +121,9 @@ public static function createResource(Zend_Config $config)
case 'file':
$resource = new FileReader($config);
break;
case 'ini':
$resource = Config::fromIni($config->ini);
break;
default:
throw new ConfigurationError(
'Unsupported resource type "%s"',
Expand Down

0 comments on commit 79ade94

Please sign in to comment.