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