summaryrefslogtreecommitdiffstats
path: root/php-symfony-requirements-checker-bin.patch
blob: ead3195e25a8674cb580081a08191a1d9676fb0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff -up ./bin/requirements-checker.php.rpm ./bin/requirements-checker.php
--- ./bin/requirements-checker.php.rpm	2020-10-12 12:07:41.257173906 +0200
+++ ./bin/requirements-checker.php	2020-10-12 12:07:57.816118639 +0200
@@ -1,3 +1,4 @@
+#!/usr/bin/env php
 <?php
 
 /*
@@ -13,17 +14,7 @@ use Symfony\Requirements\Requirement;
 use Symfony\Requirements\SymfonyRequirements;
 use Symfony\Requirements\ProjectRequirements;
 
-if (file_exists($autoloader = __DIR__.'/../../../autoload.php')) {
-    require_once $autoloader;
-} elseif (file_exists($autoloader = __DIR__.'/../vendor/autoload.php')) {
-    require_once $autoloader;
-} elseif (!class_exists('Symfony\Requirements\Requirement', false)) {
-    require_once dirname(__DIR__).'/src/Requirement.php';
-    require_once dirname(__DIR__).'/src/RequirementCollection.php';
-    require_once dirname(__DIR__).'/src/PhpConfigRequirement.php';
-    require_once dirname(__DIR__).'/src/SymfonyRequirements.php';
-    require_once dirname(__DIR__).'/src/ProjectRequirements.php';
-}
+require '/usr/share/php/Symfony/Requirements/autoload.php';
 
 $lineSize = 70;
 $args = array();