File: 0001-Use-homade-autoload-for-CLI.patch

package info (click to toggle)
composer 2.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,420 kB
  • sloc: php: 81,869; makefile: 59; xml: 39
file content (28 lines) | stat: -rw-r--r-- 748 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sun, 15 Feb 2015 22:23:46 -0400
Subject: Use homade autoload for CLI

Forwarded: not-needed
---
 bin/composer | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/composer b/bin/composer
index 4901698..243d5a9 100755
--- a/bin/composer
+++ b/bin/composer
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/php
 <?php
 
 if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') {
@@ -30,7 +30,7 @@ if (ini_get('opcache.enable_cli') && ini_get('opcache.preload')) {
 }
 
 setlocale(LC_ALL, 'C');
-require __DIR__.'/../src/bootstrap.php';
+require __DIR__ . '/../share/php/Composer/autoload.php';
 
 use Composer\Console\Application;
 use Composer\XdebugHandler\XdebugHandler;