summaryrefslogtreecommitdiffstats
path: root/php-cs-fixer-autoload.patch
blob: 7552b681f436c22481d76f8d6e71b9b6936c3dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -up ./php-cs-fixer.rpm ./php-cs-fixer
--- ./php-cs-fixer.rpm	2016-09-09 16:14:16.000000000 +0200
+++ ./php-cs-fixer	2016-09-09 16:36:48.052810179 +0200
@@ -31,12 +31,7 @@ set_error_handler(function ($severity, $
     }
 });
 
-// installed via composer?
-if (file_exists($a = __DIR__.'/../../autoload.php')) {
-    require_once $a;
-} else {
-    require_once __DIR__.'/vendor/autoload.php';
-}
+require_once '/usr/share/php/Symfony/CS/autoload.php';
 
 use Symfony\CS\Console\Application;