From 5402c24e93b87601911f210c2cf7bc5154d8f28a Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sat, 15 Feb 2020 23:29:34 +0100 Subject: [PATCH] Bugfix --- lib/SimpleSAML/Stats.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/SimpleSAML/Stats.php b/lib/SimpleSAML/Stats.php index 0dd4f0c1e..252ab2bb8 100644 --- a/lib/SimpleSAML/Stats.php +++ b/lib/SimpleSAML/Stats.php @@ -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)); } } -- GitLab