Skip to content
Snippets Groups Projects
Commit 09b30417 authored by Jaime Pérez's avatar Jaime Pérez
Browse files

Prepare to bump the version of XMLSecLibs that we are using.

The 2.x branch of XMLSecLibs uses namespaces, so we need to make sure we can still load the XMLSec* classes after updating the dependency. We can do that in the autoloader, looking for the classes with namespaces, and creating class aliases.
parent de8c1d24
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,14 @@
*/
function temporaryLoader($class)
{
// handle the upgrade to the latest version of XMLSecLibs using namespaces
if (strstr($class, 'XMLSec')) {
if (class_exists('\\RobRichards\\XMLSecLibs\\'.$class, true)) {
class_alias('\\RobRichards\\XMLSecLibs\\'.$class, $class);
return;
}
}
if (!strstr($class, 'SimpleSAML_')) {
return; // not a valid class name for old classes
}
......
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