summaryrefslogtreecommitdiffstats
path: root/sabre-dav-autoload.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-03-16 13:14:15 +0100
committerRemi Collet <fedora@famillecollet.com>2016-03-16 13:14:15 +0100
commit93b59fe5fb7b4829a7d9887dde80b14265d89721 (patch)
tree23a3b1dd3bfc9db2c1a2e3b5b4800400a68be85e /sabre-dav-autoload.patch
parent0a01943f5f730ecee40be200f9714f951c62bc9c (diff)
php-sabre-dav: 2.1.6 (synced with Fedora)
Diffstat (limited to 'sabre-dav-autoload.patch')
-rw-r--r--sabre-dav-autoload.patch21
1 files changed, 0 insertions, 21 deletions
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;
-+ }
-+});