]> git.mxchange.org Git - friendica-addons.git/blob - php-saml/_toolkit_loader.php
Merge branch '3.6-release'
[friendica-addons.git] / php-saml / _toolkit_loader.php
1 <?php
2
3 // Create an __autoload function
4 // (can conflicts other autoloaders)
5 // http://php.net/manual/en/language.oop5.autoload.php
6
7 // Load composer vendor folder if any
8 if (file_exists(__DIR__ . '/vendor/autoload.php')) {
9     require __DIR__ . '/vendor/autoload.php';
10 }
11
12 /*
13 // Load xmlseclibs
14
15 $xmlseclibsSrcDir = '';
16
17 include_once $xmlseclibsSrcDir.'/XMLSecEnc.php';
18 include_once $xmlseclibsSrcDir.'/XMLSecurityDSig.php';
19 include_once $xmlseclibsSrcDir.'/XMLSecurityKey.php';
20 include_once $xmlseclibsSrcDir.'/Utils/XPath.php';
21 */
22
23
24 // Load php-saml
25 $libDir = __DIR__ . '/src/Saml2/';
26
27 $folderInfo = scandir($libDir);
28
29 foreach ($folderInfo as $element) {
30     if (is_file($libDir.$element) && (substr($element, -4) === '.php')) {
31         include_once $libDir.$element;
32     }
33 }
34