Skip to content
Snippets Groups Projects
Commit 5402c24e authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Bugfix

parent 1c4c5f64
No related branches found
No related tags found
No related merge requests found
......@@ -33,15 +33,15 @@ class Stats
/**
* Create an output from a configuration array.
* Create an output from a configuration object.
*
* @param array $config The configuration.
* @param \SimpleSAML\Configuration $config The configuration.
*
* @return mixed A new instance of the configured class.
*/
private static function createOutput(array $config)
private static function createOutput(Configuration $config)
{
$cls = $config['class'];
$cls = $config->getString('class');
$cls = Module::resolveClass($cls, 'Stats\Output', '\SimpleSAML\Stats\Output');
$output = new $cls($config);
......@@ -61,7 +61,7 @@ class Stats
self::$outputs = [];
foreach ($outputCfgs as $cfg) {
self::$outputs[] = self::createOutput($cfg);
self::$outputs[] = self::createOutput(Configuration::loadFromArray($cfg));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment