diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-03-24 18:57:29 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-03-24 18:57:29 +0100 |
commit | 1145f9b3c291eb77366ea77d610627d480adfadf (patch) | |
tree | 323579f6ee8ee4adc8729f23cabdcd05665358d5 /php-bartlett-PHP-Reflect-3.0.0-rpm.patch | |
parent | f914c109196bf3541bc21fa1aeddf32ef1357a1d (diff) |
php-bartlett-PHP-Reflect: 3.0.0RC2
Diffstat (limited to 'php-bartlett-PHP-Reflect-3.0.0-rpm.patch')
-rw-r--r-- | php-bartlett-PHP-Reflect-3.0.0-rpm.patch | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/php-bartlett-PHP-Reflect-3.0.0-rpm.patch b/php-bartlett-PHP-Reflect-3.0.0-rpm.patch index ef7fd4a..b0a8f0f 100644 --- a/php-bartlett-PHP-Reflect-3.0.0-rpm.patch +++ b/php-bartlett-PHP-Reflect-3.0.0-rpm.patch @@ -1,7 +1,7 @@ diff -up ./bin/phpreflect.rpm ./bin/phpreflect --- ./bin/phpreflect.rpm 2015-02-19 18:51:08.000000000 +0100 +++ ./bin/phpreflect 2015-02-22 11:32:38.272052909 +0100 -@@ -1,23 +1,35 @@ +@@ -1,23 +1,37 @@ -#!/usr/bin/env php +#!/usr/bin/php <?php @@ -16,6 +16,8 @@ diff -up ./bin/phpreflect.rpm ./bin/phpreflect - if (!file_exists($vendorDir . '/autoload.php')) { - $vendorDir = dirname(dirname($baseDir)); - } ++ putenv('BARTLETT_COMPATINFO_DB=/usr/share/php-bartlett-PHP-CompatInfo/compatinfo.sqlite'); ++ + $vendorDir = '/usr/share/php'; if (!getenv("BARTLETTRC")) { @@ -82,7 +84,7 @@ diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php 'Bartlett\Tests\Reflect\Analyser\FooAnalyser' => __DIR__ . '/Analyser/FooAnalyser.php', 'Bartlett\Tests\Reflect\Analyser\BarAnalyser' -@@ -14,5 +12,23 @@ $loader->addClassMap( +@@ -14,5 +12,24 @@ $loader->addClassMap( => __DIR__ . '/Model/GenericModelTest.php', 'Bartlett\Tests\Reflect\Environment\YourLogger' => __DIR__ . '/Environment/YourLogger.php', @@ -98,6 +100,7 @@ diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php +$loader = new UniversalClassLoader(); +$loader->registerNamespaces(array( + 'Bartlett\\Tests\\Reflect' => $baseDir . '/tests', ++ 'Bartlett\\UmlWriter' => $vendorDir, + 'Bartlett' => $baseDir . '/src', + 'Monolog' => $vendorDir, +)); |