Difficult to tell. I don't see anything obvious incorrect in the part
that you included in your message.
I suggest adding some debug logging in various places in your code, and
using that to verify the contents of both $config when passed to the
constructor, and $this->config after you have called loadFromArray().
Regards,
Olav Morken
UNINETT / Feide
Thank you, Olav,
I tried to use $config instead of the return value of 'loadFromArray' and this
works well. Now my code looks like that:
[code]
/* Do any other configuration we need here. */
/* knulo 2011-11-17 */
SimpleSAML_Configuration::loadFromArray($config,
'Authentication source ' . var_export($this->authId, TRUE));
$this->config = $config; // save for further use
[/code]
Maybe this helps others...
--
Regards, Knut
Did you by any chance try to access $this->config['<something>'] after
using loadFromArray()? If you did that, it would explain your problem,
since SimpleSAML_Configuration::loadFromArray creates a
SimpleSAML_Configuration object. To retrieve data from that object you
must use various functions. E.g.:
$something = $this->config->getString('something');
This will also give you an error when "something" isn't available in
the array, or if it isn't a string. You can also give a default value:
$something = $this->config->getString('something', 'default-string');