1
0
Fork 0
composer/src/Composer
Helmut Hummel f12a5b8214
Expose path to autoload in a global var for binaries (#10137)
Always create proxy files for package binaries,
to avoid not working binaries in case the package
was installed from a path repository and is itself linked

If the binary is a PHP script, a global variable is now exposed,
which holds the path to the vendor/autoload.php file.
This variable can the be used in the binaries to include this file
without guessing where the path to the vendor folder might be.

Additionally it is now checked on binary creation whether
the reference binary has a shebang and if not, generates
a much simple proxy code, because the stream wrapper code,
that is required for PHP <8 to omit the shebang from the output,
can be skipped.

Fixes: #10119

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2021-11-25 09:53:03 +01:00
..
Autoload Upgrade PHPStan to 1.0 (#10253) 2021-11-14 20:42:24 +01:00
Command Add COMPOSER_NO_DEV environment variable to set the --no-dev flag (#10262) 2021-11-24 11:32:19 +01:00
Config Fix @inheritDoc annotations 2021-10-27 16:18:53 +02:00
Console Upgrade PHPStan to 1.0 (#10253) 2021-11-14 20:42:24 +01:00
DependencyResolver Undo changes to providers, only unlock replacers when unlocking a given name 2021-11-23 16:11:44 +01:00
Downloader GitDownloader: add option for single use git clone to avoid --dissociate when cloning from local copy (#10288) 2021-11-17 19:53:10 +01:00
EventDispatcher Upgrade PHPStan to 1.0 (#10253) 2021-11-14 20:42:24 +01:00
Exception Fix logic (again) 2020-10-25 12:59:01 +00:00
Filter/PlatformRequirementFilter Add wildcard support to ignore-platform-req, fixes #10045 (#10083) 2021-11-11 15:56:38 +01:00
IO Fix @inheritDoc annotations 2021-10-27 16:18:53 +02:00
Installer Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
Json PHPStan level 6 in src/Composer/Json (#10172) 2021-10-16 22:42:32 +02:00
Package Get rid of gitignore/hgignore handling (fixes #7358), Add support for -export-ignore (fixes #9153) 2021-11-24 22:56:51 +01:00
Platform Avoid checking for hhvm in a loop, refs #10170 2021-10-18 10:51:16 +02:00
Plugin Bump plugin api version, fixes #10082 2021-11-24 16:35:58 +01:00
Question Add type info to many properties/methods 2021-08-30 14:46:49 +02:00
Repository Upgrade PHPStan to 1.0 (#10253) 2021-11-14 20:42:24 +01:00
Script Phpstan level 6 in Composer/Plaform and Composer/Script (#10159) (#10170) 2021-10-17 13:52:01 +02:00
SelfUpdate Reaching phpstan level 6 in Composer/SelfUpdate (#10169) 2021-10-16 22:35:31 +02:00
Util Add support for warnings/infos keys to report more complex information to diverse Composer versions 2021-11-24 16:00:57 +01:00
Cache.php Read first from $_SERVER and $_ENV before using getenv (#10218) 2021-11-09 16:31:27 +01:00
Compiler.php Add types to root namespace (#10213) 2021-10-26 12:40:52 +02:00
Composer.php Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
Config.php Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
Factory.php Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
InstalledVersions.php Lots of typing improvements 2021-10-12 22:47:23 +02:00
Installer.php Revert "To be reverted: Disable pool optimizer by default, run solver twice and compare outputs if user opts into optimizer" 2021-11-23 17:05:10 +01:00