1
0
Fork 0
composer/doc/articles
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
..
aliases.md Capitalize Composer in the docs 2021-10-25 13:11:56 +02:00
authentication-for-private-packages.md Update what GitHub token scope is needed and what it implies (#10257) 2021-11-08 10:53:12 +01:00
autoloader-optimization.md Merge branch '1.10' 2020-10-24 09:59:46 +02:00
custom-installers.md Fix @inheritDoc annotations 2021-10-27 16:18:53 +02:00
handling-private-packages.md Capitalize Composer in the docs 2021-10-25 13:11:56 +02:00
plugins.md Rename master branch to main 2021-10-14 16:21:47 +02:00
repository-priorities.md Capitalize Composer in the docs 2021-10-25 13:11:56 +02:00
resolving-merge-conflicts.md Capitalize Composer in the docs 2021-10-25 13:11:56 +02:00
scripts.md Use `composer.phar` consistently in the examples 2021-10-25 13:11:41 +02:00
troubleshooting.md (Probable) typo fix (#10286) 2021-11-17 11:03:48 +01:00
vendor-binaries.md Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
versions.md Capitalize Composer in the docs 2021-10-25 13:11:56 +02:00