From 93b59fe5fb7b4829a7d9887dde80b14265d89721 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 16 Mar 2016 13:14:15 +0100 Subject: php-sabre-dav: 2.1.6 (synced with Fedora) --- sabre-dav-autoload.patch | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 sabre-dav-autoload.patch (limited to 'sabre-dav-autoload.patch') diff --git a/sabre-dav-autoload.patch b/sabre-dav-autoload.patch deleted file mode 100644 index b5ddca6..0000000 --- a/sabre-dav-autoload.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -up lib/Sabre/autoload.php.orig lib/Sabre/autoload.php ---- lib/Sabre/autoload.php.orig 2014-05-22 09:19:59.914874236 +0200 -+++ lib/Sabre/autoload.php 2014-05-22 09:21:26.300242963 +0200 -@@ -15,11 +15,9 @@ - * @license http://sabre.io/license/ Modified BSD License - */ - --/** -- * We are assuming that the composer autoloader is just 2 directories up. -- * -- * This is not the case when sabredav is installed as a dependency. But, in -- * those cases it's not expected that people will look for this file anyway. -- */ -- --require __DIR__ . '/../../vendor/autoload.php'; -+spl_autoload_register(function ($class) { -+ if (strpos($class,'Sabre\\')===0) { -+ $file = __DIR__ . str_replace('\\', '/', substr($class,5)).'.php'; -+ @include $file; -+ } -+}); -- cgit