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

Fix namespace deprecation warnings

parent 6332fd73
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,7 @@ class ProcessingChain
$className = \SimpleSAML\Module::resolveClass(
$config['class'],
'Auth_Process',
'Auth\Process',
'\SimpleSAML\Auth\ProcessingFilter'
);
$config['%priority'] = $priority;
......
......@@ -306,7 +306,7 @@ abstract class Source
// Check whether or not there's a factory responsible for instantiating our Auth Source instance
$factoryClass = \SimpleSAML\Module::resolveClass(
$id,
'Auth_Source_Factory',
'Auth\Source\Factory',
'\SimpleSAML\Auth\SourceFactory'
);
......@@ -315,7 +315,7 @@ abstract class Source
$authSource = $factory->create($info, $config);
} catch (\Exception $e) {
// If not, instantiate the Auth Source here
$className = \SimpleSAML\Module::resolveClass($id, 'Auth_Source', '\SimpleSAML\Auth\Source');
$className = \SimpleSAML\Module::resolveClass($id, 'Auth\Source', '\SimpleSAML\Auth\Source');
$authSource = new $className($info, $config);
}
......
......@@ -38,7 +38,7 @@ class Stats
private static function createOutput(\SimpleSAML\Configuration $config)
{
$cls = $config->getString('class');
$cls = \SimpleSAML\Module::resolveClass($cls, 'Stats_Output', '\SimpleSAML\Stats\Output');
$cls = \SimpleSAML\Module::resolveClass($cls, 'Stats\Output', '\SimpleSAML\Stats\Output');
$output = new $cls($config);
return $output;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment