summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-Reflect-3.0.0-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-21 20:14:04 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-21 20:14:04 +0200
commit4ad6a01536450b28c067b9a455bcbcae674fb515 (patch)
treec603afd522718301c0c40af417868fa9c2ab090c /php-bartlett-PHP-Reflect-3.0.0-rpm.patch
parent3bc1e20136fd7332ad2e3def0618487bba7b6040 (diff)
php-bartlett-PHP-Reflect: fix autoloader
Diffstat (limited to 'php-bartlett-PHP-Reflect-3.0.0-rpm.patch')
-rw-r--r--php-bartlett-PHP-Reflect-3.0.0-rpm.patch10
1 files changed, 6 insertions, 4 deletions
diff --git a/php-bartlett-PHP-Reflect-3.0.0-rpm.patch b/php-bartlett-PHP-Reflect-3.0.0-rpm.patch
index c9b4c73..80e32f4 100644
--- a/php-bartlett-PHP-Reflect-3.0.0-rpm.patch
+++ b/php-bartlett-PHP-Reflect-3.0.0-rpm.patch
@@ -21,9 +21,10 @@ diff -up ./bin/phpreflect.json.dist.rpm ./bin/phpreflect.json.dist
],
"analysers": [
],
+diff -up ./bin/phpreflect.rpm ./bin/phpreflect
--- ./bin/phpreflect.rpm 2015-06-18 13:30:46.000000000 +0200
-+++ ./bin/phpreflect 2015-06-18 15:22:05.844085467 +0200
-@@ -5,19 +5,34 @@
++++ ./bin/phpreflect 2015-06-21 20:10:01.185883366 +0200
+@@ -5,19 +5,35 @@ $appName = 'phpReflect';
if (\Phar::running()) {
$vendorDir = 'phar://' . strtolower($appName) . '.phar/vendor';
} else {
@@ -33,6 +34,7 @@ diff -up ./bin/phpreflect.json.dist.rpm ./bin/phpreflect.json.dist
- if (!file_exists($vendorDir . '/autoload.php')) {
- $vendorDir = dirname(dirname($baseDir));
- }
++ $vendorDir = '/usr/share/php';
+ putenv('BARTLETT_COMPATINFO_DB=/usr/share/php-bartlett-PHP-CompatInfo/compatinfo.sqlite');
if (!getenv("BARTLETTRC")) {
@@ -46,7 +48,7 @@ diff -up ./bin/phpreflect.json.dist.rpm ./bin/phpreflect.json.dist
+PhpParser\Autoloader::register();
+
+require_once $vendorDir . '/Symfony/Component/ClassLoader/UniversalClassLoader.php';
-+require_once $vendorDir . '/SebastianBergmann/Version/Version.php';
++require_once $vendorDir . '/SebastianBergmann/Version/autoload.php';
+
+use Symfony\Component\ClassLoader\UniversalClassLoader;
+
@@ -66,7 +68,7 @@ diff -up ./bin/phpreflect.json.dist.rpm ./bin/phpreflect.json.dist
if (\Phar::running()) {
if ($home) {
-@@ -40,5 +55,5 @@
+@@ -40,5 +56,5 @@ use Bartlett\Reflect\Console\Application
Environment::setScanDir();