Skip to content
Snippets Groups Projects
Commit e135bb4f authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Simple reformatting for auto loaders.

parent 17db5f56
No related branches found
No related tags found
No related merge requests found
<?php
/**
* This file is a backwards compatible autoloader for simpleSAMLphp.
* This file is a backwards compatible autoloader for SimpleSAMLphp.
* Loads the Composer autoloader.
*
* @author Olav Morken, UNINETT AS.
* @package simpleSAMLphp
* @package SimpleSAMLphp
*/
// SSP is loaded as a separate project
if (file_exists(dirname(dirname(__FILE__)) . '/vendor/autoload.php')) {
require_once dirname(dirname(__FILE__)) . '/vendor/autoload.php';
}
// SSP is loaded as a library.
else if (file_exists(dirname(dirname(__FILE__)) . '/../../autoload.php')) {
require_once dirname(dirname(__FILE__)) . '/../../autoload.php';
}
else {
throw new Exception('Unable to load Composer autoloader');
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
/**
* This file implements a autoloader for simpleSAMLphp modules.
* This file implements a autoloader for SimpleSAMLphp modules.
*
* @author Boy Baukema, SURFnet
* @package simpleSAMLphp
* @package SimpleSAMLphp
*/
/**
* Autoload function for simpleSAMLphp modules.
* Autoload function for SimpleSAMLphp modules.
*
* @param string $className Name of the class.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment