From 7fec0b1c264ed6146be606b666aba1adb909d24c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 21 Oct 2016 11:16:42 +0200 Subject: php-seld-phar-utils: fedora autoloader --- phar-utils-autoload.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'phar-utils-autoload.php') diff --git a/phar-utils-autoload.php b/phar-utils-autoload.php index 0b8dbac..622780c 100644 --- a/phar-utils-autoload.php +++ b/phar-utils-autoload.php @@ -1,15 +1,9 @@ register(); +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; } -$fedoraClassLoader->addPrefix('Seld\\PharUtils\\', dirname(dirname(__DIR__))); +\Fedora\Autoloader\Autoload::addPsr4('Seld\\PharUtils\\', __DIR__); + -- cgit