]> git.pld-linux.org Git - packages/composer.git/blob - autoload.patch
Requires cli for online test
[packages/composer.git] / autoload.patch
1 --- composer-1.6.5/bin/composer~        2018-05-04 12:44:59.000000000 +0300
2 +++ composer-1.6.5/bin/composer 2018-05-20 18:46:39.628512375 +0300
3 @@ -6,7 +6,11 @@
4  }
5  
6  setlocale(LC_ALL, 'C');
7 -require __DIR__.'/../src/bootstrap.php';
8 +if (file_exists($autoload = __DIR__ . '/../src/Composer/autoload.php')) {
9 +       require $autoload;
10 +} else {
11 +       require '/usr/share/php/Composer/autoload.php';
12 +}
13  
14  use Composer\Factory;
15  use Composer\XdebugHandler;
16 --- composer-1.4.1/src/Composer/Json/JsonFile.php~      2017-03-10 10:29:45.000000000 +0200
17 +++ composer-1.4.1/src/Composer/Json/JsonFile.php       2017-03-28 13:37:49.762829930 +0300
18 @@ -156,7 +156,7 @@
19              self::validateSyntax($content, $this->path);
20          }
21  
22 -        $schemaFile = __DIR__ . '/../../../res/composer-schema.json';
23 +        $schemaFile = __DIR__ . '/../res/composer-schema.json';
24  
25          // Prepend with file:// only when not using a special schema already (e.g. in the phar)
26          if (false === strpos($schemaFile, '://')) {
27 --- composer-1.0.0-15.alpha11/src/Composer/Autoload/AutoloadGenerator.php~      2015-11-14 18:21:07.000000000 +0200
28 +++ composer-1.0.0-15.alpha11/src/Composer/Autoload/AutoloadGenerator.php       2015-11-26 14:52:01.344498517 +0200
29 @@ -275,7 +275,7 @@
30          file_put_contents($targetDir.'/autoload_real.php', $this->getAutoloadRealFile(true, (bool) $includePathFileContents, $targetDirLoader, (bool) $includeFilesFileContents, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader));
31  
32          $this->safeCopy(__DIR__.'/ClassLoader.php', $targetDir.'/ClassLoader.php');
33 -        $this->safeCopy(__DIR__.'/../../../LICENSE', $targetDir.'/LICENSE');
34 +        $this->safeCopy(__DIR__.'/../res/LICENSE', $targetDir.'/LICENSE');
35  
36          $this->eventDispatcher->dispatchScript(ScriptEvents::POST_AUTOLOAD_DUMP, $this->devMode, array(), array(
37              'optimize' => (bool) $scanPsr0Packages,
This page took 0.068031 seconds and 3 git commands to generate.