File: 0005-Use-home-made-autoload.patch

package info (click to toggle)
php-guzzlehttp 5.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,560 kB
  • ctags: 2,519
  • sloc: php: 11,610; makefile: 182; python: 22; sh: 6
file content (30 lines) | stat: -rw-r--r-- 872 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 4 May 2014 14:14:06 -0400
Subject: Use home made autoload

Forwarded: not-needed
---
 vendor/autoload.php | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 vendor/autoload.php

diff --git a/vendor/autoload.php b/vendor/autoload.php
new file mode 100644
index 0000000..35f68d3
--- /dev/null
+++ b/vendor/autoload.php
@@ -0,0 +1,14 @@
+<?php
+
+require_once 'Symfony/Component/ClassLoader/ClassLoader.php';
+use Symfony\Component\ClassLoader\ClassLoader;
+$loader = new ClassLoader();
+$loader->setUseIncludePath(true);
+$loader->register();
+$loader->addPrefixes(array(
+// ClassLoader is not yet PSR-4 friendly, so symlinks are used instead
+//	'GuzzleHttp'		=> __DIR__.'/../src',
+//	'GuzzleHttp\\Tests'	=> __DIR__.'/../tests',
+));
+
+require_once 'React/Promise/functions.php';