Go to the source code of this file.
|
| SimpleSAMLphp |
| Temporary autoloader to ensure compatibility with old, non-PSR-2 compliant classes.
|
|
◆ SAML2_autoload()
SAML2_autoload |
( |
|
$className | ) |
|
Autoload function that looks for classes migrated to PSR-2.
- Parameters
-
string | $className | Name of the class. |
Definition at line 15 of file _autoload.php.
19 'SAML2_Const' =>
'SAML2_Constants',
21 $oldName = $className;
22 if (array_key_exists($className, $renamed)) {
23 $className = $renamed[$className];
26 $file = dirname(__FILE__).
'/'.str_replace(
'_',
'/', $className).
'.php';
27 if (file_exists($file)) {
29 $newName =
'\\'.str_replace(
'_',
'\\', $className);
30 class_alias($newName, $oldName);