File 0001-Use-homemade-autoload.php.patch of Package php-sabre-http

From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Wed, 25 Feb 2015 23:52:46 -0400
Subject: Use homemade autoload.php

Work around the lack of proper autoload.php from Composer.

Forwarded: not-needed
---
 README.md                 | 4 ++--
 examples/asyncclient.php  | 2 +-
 examples/basicauth.php    | 1 +
 examples/client.php       | 1 +
 examples/reverseproxy.php | 1 +
 examples/stringify.php    | 1 +
 tests/bootstrap.php       | 2 +-
 7 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index a749b6b..3d58e1b 100644
--- a/README.md
+++ b/README.md
@@ -75,7 +75,7 @@ instantiate a request object is as follows:
 ```php
 use Sabre\HTTP;
 
-include 'vendor/autoload.php';
+include 'sabre21/Sabre/HTTP/autoload.php';
 
 $request = HTTP\Sapi::getRequest();
 ```
@@ -98,7 +98,7 @@ A response object you can just create as such:
 ```php
 use Sabre\HTTP;
 
-include 'vendor/autoload.php';
+include 'sabre21/Sabre/HTTP/autoload.php';
 
 $response = new HTTP\Response();
 $response->setStatus(201); // created !
diff --git a/examples/asyncclient.php b/examples/asyncclient.php
index ad097ad..f51ab34 100644
--- a/examples/asyncclient.php
+++ b/examples/asyncclient.php
@@ -18,10 +18,10 @@ use
 
 // Find the autoloader
 $paths = [
+    '/usr/share/php/sabre21/Sabre/HTTP/autoload.php';
     __DIR__ . '/../vendor/autoload.php',
     __DIR__ . '/../../../autoload.php',
     __DIR__ . '/vendor/autoload.php',
-
 ];
 
 foreach($paths as $path) {
diff --git a/examples/basicauth.php b/examples/basicauth.php
index bb0e8d0..bfc70f0 100644
--- a/examples/basicauth.php
+++ b/examples/basicauth.php
@@ -21,6 +21,7 @@ use
 
 // Find the autoloader
 $paths = [
+    '/usr/share/php/sabre21/Sabre/HTTP/autoload.php';
     __DIR__ . '/../vendor/autoload.php',
     __DIR__ . '/../../../autoload.php',
     __DIR__ . '/vendor/autoload.php',
diff --git a/examples/client.php b/examples/client.php
index 07aed98..c547873 100644
--- a/examples/client.php
+++ b/examples/client.php
@@ -16,6 +16,7 @@ use
 
 // Find the autoloader
 $paths = [
+    '/usr/share/php/sabre21/Sabre/HTTP/autoload.php';
     __DIR__ . '/../vendor/autoload.php',
     __DIR__ . '/../../../autoload.php',
     __DIR__ . '/vendor/autoload.php',
diff --git a/examples/reverseproxy.php b/examples/reverseproxy.php
index 4fe17c2..bfdce6d 100644
--- a/examples/reverseproxy.php
+++ b/examples/reverseproxy.php
@@ -17,6 +17,7 @@ use
 
 // Find the autoloader
 $paths = [
+    '/usr/share/php/sabre21/Sabre/HTTP/autoload.php';
     __DIR__ . '/../vendor/autoload.php',
     __DIR__ . '/../../../autoload.php',
     __DIR__ . '/vendor/autoload.php',
diff --git a/examples/stringify.php b/examples/stringify.php
index db3c9b3..50b3463 100644
--- a/examples/stringify.php
+++ b/examples/stringify.php
@@ -18,6 +18,7 @@ use
 
 // Find the autoloader
 $paths = [
+    '/usr/share/php/sabre21/Sabre/HTTP/autoload.php';
     __DIR__ . '/../vendor/autoload.php',
     __DIR__ . '/../../../autoload.php',
     __DIR__ . '/vendor/autoload.php',
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 0a544fa..cc096af 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -5,5 +5,5 @@ date_default_timezone_set('UTC');
 ini_set('error_reporting', E_ALL | E_STRICT | E_DEPRECATED);
 
 // Composer autoloader
-include __DIR__ . '/../vendor/autoload.php';
+include 'sabre21/Sabre/HTTP/autoload.php';