diff options
Diffstat (limited to 'php-phpseclib-autoload.php')
-rw-r--r-- | php-phpseclib-autoload.php | 17 |
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__); |