From c534709aeb1081105537aaa2a142bfde09ebf7f1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 29 Oct 2016 15:05:52 +0200 Subject: php-sabre-http: switch from symfony/class-loader to fedora/autoloader --- php-sabre-http-autoload.php | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'php-sabre-http-autoload.php') diff --git a/php-sabre-http-autoload.php b/php-sabre-http-autoload.php index 898fded..985f366 100644 --- a/php-sabre-http-autoload.php +++ b/php-sabre-http-autoload.php @@ -1,26 +1,14 @@ register(); -} - -$fedoraClassLoader->addPrefix('Sabre\\HTTP\\', dirname(dirname(__DIR__))); +\Fedora\Autoloader\Autoload::addPsr4('Sabre\\HTTP\\', __DIR__); // Functions require_once __DIR__ . '/functions.php'; // dependencies -require_once $vendorDir . '/Sabre/Event/autoload.php'; -require_once $vendorDir . '/Sabre/Uri/autoload.php'; +require_once '/usr/share/php/Sabre/Event/autoload.php'; +require_once '/usr/share/php/Sabre/Uri/autoload.php'; -- cgit