1
0
Fork 0
Commit Graph

9 Commits (c1c6698799d23a35ad17f6c23c10b3d5aa2b145d)

Author SHA1 Message Date
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
Kat a34f88cb01
Change `dependencies` to `binaries` 2018-02-01 14:43:38 +00:00
Kat cd27cb1a95
Correct a tiny typo
`project b's` should be `project a's` in the example given
2018-01-31 14:38:48 +00:00
Gabriel Caruso 486e580db2 Clean up documentation 2017-12-30 18:11:52 -02:00
Michael C. 367654b81f Add note about how to put binaries in project root 2014-07-01 20:52:28 +01:00
Jordi Boggiano 0c85ca426d Add code-fences to examples for syntax highlighting 2014-05-19 12:17:07 +02:00
Adán Lobato f9f144862e Fixed minor typo on 'require' property 2013-12-17 09:33:46 +01:00
Arul 1ba62d09e4 Update doc/articles/vendor-binaries.md 2013-01-26 11:52:28 +08:00
David Zuelke 7e1f81dc1e rename vendor-bins.md to vendor-binaries.md 2013-01-14 19:42:12 +01:00