From 37760249be821af2344a17cf022d44c8bc0831ba Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 21 Oct 2016 11:13:19 +0200 Subject: php-jsonlint: fedora autoloader --- php-jsonlint-autoload.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'php-jsonlint-autoload.php') diff --git a/php-jsonlint-autoload.php b/php-jsonlint-autoload.php index 53f50f4..a6c272d 100644 --- a/php-jsonlint-autoload.php +++ b/php-jsonlint-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\\JsonLint\\', dirname(dirname(__DIR__))); +\Fedora\Autoloader\Autoload::addPsr4('Seld\\JsonLint\\', __DIR__); + -- cgit