summaryrefslogtreecommitdiffstats
path: root/php-phpseclib-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-05-08 17:26:34 +0200
committerRemi Collet <remi@remirepo.net>2017-05-08 17:26:34 +0200
commit61f76bfa3e20f4948c4d10e90ad7aab64dc3e233 (patch)
tree7fe4d7bc7538bde82dccd423202aa61c8b49345f /php-phpseclib-autoload.php
parente1732c8666371847ee6c6f844e5598e89393d87d (diff)
v2.0.5
Diffstat (limited to 'php-phpseclib-autoload.php')
-rw-r--r--php-phpseclib-autoload.php17
1 files changed, 2 insertions, 15 deletions
diff --git a/php-phpseclib-autoload.php b/php-phpseclib-autoload.php
index 4367aa0..93e0f67 100644
--- a/php-phpseclib-autoload.php
+++ b/php-phpseclib-autoload.php
@@ -3,22 +3,9 @@
/**
* Autoloader for phpseclib/phpseclib.
*/
-$vendorDir = '/usr/share/php';
-
-// Use Symfony autoloader
-if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Component\ClassLoader\ClassLoader)) {
- if (!class_exists('Symfony\\Component\\ClassLoader\\ClassLoader', false)) {
- require_once $vendorDir.'/Symfony/Component/ClassLoader/ClassLoader.php';
- }
-
- $fedoraClassLoader = new \Symfony\Component\ClassLoader\ClassLoader();
- $fedoraClassLoader->register();
-}
+require_once "/usr/share/php/Fedora/Autoloader/autoload.php";
// composer.json: "autoload": { "files": [ "phpseclib/bootstrap.php" ], "psr-4": { "phpseclib\\": "phpseclib/" }
require_once __DIR__ . '/bootstrap.php';
-
-$fedoraClassLoader->addPrefixes(array(
- 'phpseclib' => dirname(__DIR__),
-));
+\Fedora\Autoloader\Autoload::addPsr4('phpseclib\\', __DIR__);