From 1010a7dbfb1edf99e56d2f402d7d15d094944048 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 29 Oct 2016 14:59:09 +0200 Subject: php-sabre-xml: switch from symfony/class-loader to fedora/autoloader --- php-sabre-xml-autoload.php | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'php-sabre-xml-autoload.php') diff --git a/php-sabre-xml-autoload.php b/php-sabre-xml-autoload.php index d8eeb00..c50ba4e 100644 --- a/php-sabre-xml-autoload.php +++ b/php-sabre-xml-autoload.php @@ -1,26 +1,14 @@ register(); -} - -$fedoraClassLoader->addPrefix('Sabre\\Xml\\', dirname(dirname(__DIR__))); +\Fedora\Autoloader\Autoload::addPsr4('Sabre\\Xml\\', __DIR__); // Functions require_once __DIR__ . '/Deserializer/functions.php'; require_once __DIR__ . '/Serializer/functions.php'; // Dependencies -require_once $vendorDir . '/Sabre/Uri/autoload.php'; +require_once '/usr/share/php/Sabre/Uri/autoload.php'; -- cgit