File: Yaml-Adapt-to-homemade-autoload.patch

package info (click to toggle)
symfony 7.3.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 129,560 kB
  • sloc: php: 1,503,693; xml: 6,816; javascript: 1,043; sh: 586; makefile: 241; pascal: 70
file content (24 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Thu, 7 Jan 2021 00:35:01 -0400
Subject: [Yaml] Adapt to homemade autoload

Forwarded: not-needed
---
 src/Symfony/Component/Yaml/Resources/bin/yaml-lint | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/Symfony/Component/Yaml/Resources/bin/yaml-lint b/src/Symfony/Component/Yaml/Resources/bin/yaml-lint
index 143869e..4cfbb3a 100755
--- a/src/Symfony/Component/Yaml/Resources/bin/yaml-lint
+++ b/src/Symfony/Component/Yaml/Resources/bin/yaml-lint
@@ -29,9 +29,7 @@ function includeIfExists(string $file): bool
 }
 
 if (
-    !includeIfExists(__DIR__ . '/../../../../autoload.php') &&
-    !includeIfExists(__DIR__ . '/../../vendor/autoload.php') &&
-    !includeIfExists(__DIR__ . '/../../../../../../vendor/autoload.php')
+    !includeIfExists(__DIR__ . '/../share/php/Symfony/Component/Yaml/autoload.php')
 ) {
     fwrite(STDERR, 'Install dependencies using Composer.'.PHP_EOL);
     exit(1);