blob: 1f6b1257aca985e4ccac9b509be9b1bf2120a4c4 (
plain)
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
|
diff -up ./Library/autoload.php.rpm ./Library/autoload.php
--- ./Library/autoload.php.rpm 2019-01-16 13:34:46.975062156 +0100
+++ ./Library/autoload.php 2019-01-16 13:35:28.477322927 +0100
@@ -39,20 +39,4 @@ if (PHP_SAPI !== 'cli' && PHP_SAPI !== '
exit(1);
}
-$autoloaders = [
- __DIR__.'/../vendor/autoload.php', // Is installed locally
- __DIR__.'/../../../autoload.php', // Is installed via Composer
-];
-
-foreach ($autoloaders as $file) {
- if (file_exists($file)) {
- include_once $file;
- break;
- }
-}
-
-if (false == class_exists('Composer\Autoload\ClassLoader', false)) {
- fwrite(STDERR, 'Unable to find the Composer autoloader.'.PHP_EOL);
-
- exit(1);
-}
+require_once dirname(__DIR__) . '/autoload.php';
diff -up ./zephir.rpm ./zephir
--- ./zephir.rpm 2019-01-16 13:34:46.975062156 +0100
+++ ./zephir 2019-01-16 13:36:53.264855644 +0100
@@ -1,4 +1,3 @@
-#!/usr/bin/env php
<?php
/*
|