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

Restore part of the autoloader structure; it broke PHP 8.x support

parent 628a2e6a
No related branches found
No related tags found
No related merge requests found
<?php
/**
* This file is a backwards compatible autoloader for SimpleSAMLphp.
* Loads the Composer autoloader.
*
* @package SimpleSAMLphp
*/
declare(strict_types=1);
// SSP is loaded as a separate project
if (file_exists(dirname(dirname(__FILE__)) . '/vendor/autoload.php')) {
require_once dirname(dirname(__FILE__)) . '/vendor/autoload.php';
} else {
// SSP is loaded as a library
if (file_exists(dirname(dirname(__FILE__)) . '/../../autoload.php')) {
require_once dirname(dirname(__FILE__)) . '/../../autoload.php';
} else {
throw new Exception('Unable to load Composer autoloader');
}
}
<?php <?php
// initialize the autoloader
require_once(dirname(dirname(__FILE__)) . '/lib/_autoload.php');
use SAML2\Compat\ContainerSingleton; use SAML2\Compat\ContainerSingleton;
use SimpleSAML\Compat\SspContainer; use SimpleSAML\Compat\SspContainer;
use SimpleSAML\Configuration; use SimpleSAML\Configuration;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment