From 3c9a991ffe0fb29a29498cecf171cfc88d0da46b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 29 Oct 2016 15:35:33 +0200 Subject: php-sabre-dav: switch from symfony/class-loader to fedora/autoloader --- php-sabre-dav-autoload.php | 37 ++++++++++++------------------------- 1 file changed, 12 insertions(+), 25 deletions(-) (limited to 'php-sabre-dav-autoload.php') diff --git a/php-sabre-dav-autoload.php b/php-sabre-dav-autoload.php index 93a3196..160dfab 100644 --- a/php-sabre-dav-autoload.php +++ b/php-sabre-dav-autoload.php @@ -1,31 +1,18 @@ register(); -} - -$thisdir = dirname(dirname(__DIR__)); -$fedoraClassLoader->addPrefixes(array( - 'Sabre\\DAV\\' => $thisdir, - 'Sabre\\DAVACL\\' => $thisdir, - 'Sabre\\CalDAV\\' => $thisdir, - 'Sabre\\CardDAV\\' => $thisdir, +\Fedora\Autoloader\Dependencies::required(array( + '/usr/share/php/Sabre/Event/autoload.php', + '/usr/share/php/Sabre/HTTP/autoload.php', + '/usr/share/php/Sabre/VObject/autoload.php', + '/usr/share/php/Sabre/Xml/autoload.php', + '/usr/share/php/Sabre/Uri/autoload.php', )); -// dependencies -require_once $vendorDir . '/Sabre/Event/autoload.php'; -require_once $vendorDir . '/Sabre/HTTP/autoload.php'; -require_once $vendorDir . '/Sabre/VObject/autoload.php'; -require_once $vendorDir . '/Sabre/Xml/autoload.php'; -require_once $vendorDir . '/Sabre/Uri/autoload.php'; -- cgit