1
0
Fork 0
composer/doc
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
..
articles Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
dev Prioritize repository over package versions in the default policy, fixes #3509 2015-04-30 10:43:04 +01:00
faqs Added link to composer-allow-superuser (#10215) 2021-10-26 17:43:03 +02:00
fixtures Fix EOL of text files (#9877) 2021-05-12 15:19:52 +02:00
00-intro.md Fix reference to main [ci skip] (#10174) 2021-10-17 13:51:42 +02:00
01-basic-usage.md Improve some linking 2021-11-23 14:48:47 +01:00
02-libraries.md Make a note about lower casing of package names (#9883) 2021-05-17 22:18:06 +02:00
03-cli.md Add COMPOSER_NO_DEV environment variable to set the --no-dev flag (#10262) 2021-11-24 11:32:19 +01:00
04-schema.md Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
05-repositories.md Fix spelling of Bitbucket (#10290) 2021-11-17 20:54:18 +01:00
06-config.md Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
07-runtime.md Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
08-community.md Rename master branch to main 2021-10-14 16:21:47 +02:00