File: 0001-Use-homemade-autoload.php.patch

package info (click to toggle)
php-cli-prompt 1.0.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 104 kB
  • ctags: 21
  • sloc: php: 64; makefile: 6
file content (40 lines) | stat: -rw-r--r-- 850 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
31
32
33
34
35
36
37
38
39
40
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Wed, 13 May 2015 19:19:05 -0400
Subject: Use homemade autoload.php

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

Forwarded: not-needed
---
 README.md       | 5 -----
 res/example.php | 2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/README.md b/README.md
index d5a046a..e97737c 100644
--- a/README.md
+++ b/README.md
@@ -23,11 +23,6 @@ echo 'You answered: '.$answer . PHP_EOL;
 // You answered: hello
 ```
 
-Installation
-------------
-
-`composer require seld/cli-prompt`
-
 API
 ---
 
diff --git a/res/example.php b/res/example.php
index 5ce5b23..de29dd2 100644
--- a/res/example.php
+++ b/res/example.php
@@ -1,6 +1,6 @@
 <?php
 
-require __DIR__.'/../vendor/autoload.php';
+require 'Seld/CliPrompt/autoload.php';
 
 echo 'Say hello (visible): ';