summaryrefslogtreecommitdiffstats
path: root/php-bartlett-umlwriter-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-22 06:47:45 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-22 06:47:45 +0200
commit56097ddb6981b431fa7b9f40b9eb3577656706b1 (patch)
tree41bc08b57275393e3b679b835499d1d11e856e34 /php-bartlett-umlwriter-rpm.patch
parent457ad557cb0eea5a4d96b517c87e2ed20cd5bcf8 (diff)
php-bartlett-umlwriter: fix autoload
Diffstat (limited to 'php-bartlett-umlwriter-rpm.patch')
-rw-r--r--php-bartlett-umlwriter-rpm.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/php-bartlett-umlwriter-rpm.patch b/php-bartlett-umlwriter-rpm.patch
index 5a09d6f..994f79c 100644
--- a/php-bartlett-umlwriter-rpm.patch
+++ b/php-bartlett-umlwriter-rpm.patch
@@ -3,7 +3,7 @@ diff -up ./bin/umlwriter.rpm ./bin/umlwriter
+++ ./bin/umlwriter 2015-03-31 11:29:43.000000000 +0200
@@ -1,24 +1,36 @@
-#!/usr/bin/env php
-+#!/usr/bin/php
++#!/usr/bin/env php
<?php
$appName = 'umlWriter';
@@ -29,7 +29,7 @@ diff -up ./bin/umlwriter.rpm ./bin/umlwriter
+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;
+
@@ -65,7 +65,7 @@ diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
-require_once $vendorDir . '/autoload.php';
+require_once $vendorDir . '/PhpParser/Autoloader.php';
+PhpParser\Autoloader::register();
-+require_once $vendorDir . '/SebastianBergmann/Version/Version.php';
++require_once $vendorDir . '/SebastianBergmann/Version/autoload.php';
+require_once $vendorDir . '/Symfony/Component/ClassLoader/UniversalClassLoader.php';
+
+use Symfony\Component\ClassLoader\UniversalClassLoader;