summaryrefslogtreecommitdiffstats
path: root/phploc-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'phploc-rpm.patch')
-rw-r--r--phploc-rpm.patch13
1 files changed, 6 insertions, 7 deletions
diff --git a/phploc-rpm.patch b/phploc-rpm.patch
index 671c679..6fba185 100644
--- a/phploc-rpm.patch
+++ b/phploc-rpm.patch
@@ -1,10 +1,10 @@
diff -up ./phploc.rpm ./phploc
---- ./phploc.rpm 2015-06-04 15:18:14.000000000 +0200
-+++ ./phploc 2015-06-04 17:19:24.277906076 +0200
-@@ -9,23 +9,7 @@
+--- ./phploc.rpm 2020-08-13 13:59:16.515178218 +0200
++++ ./phploc 2020-08-13 13:59:43.163139614 +0200
+@@ -9,22 +9,6 @@
* file that was distributed with this source code.
*/
-
+
-$loaded = false;
-
-foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
@@ -23,6 +23,5 @@ diff -up ./phploc.rpm ./phploc
- );
-}
+require '/usr/share/php/SebastianBergmann/PHPLOC/autoload.php';
-
- $application = new SebastianBergmann\PHPLOC\CLI\Application;
- $application->run();
+
+ exit((new \SebastianBergmann\PHPLOC\Application)->run($_SERVER['argv']));