Commit fa77f35
committed
fix symfony-autocomplete composer vendor
bin/symfony-autocomplete did not honor COMPOSER_VENDOR_DIR and treated it
as if it is the default value "vendor" only.
however it is part of the composer install protocol and required for
the bin-stubs autoloading. it should not be hard-encoded to the default
value only.
fix is to use COMPOSER_VENDOR_DIR as absolute path, as relative path to
PWD and as relative path to bin/symfony-autocomplete given the first
attempt to try requiring from __DIR__.'/../../../autoload.php' failed.
NOTE: use of include_once instead of require_once is intended here, the EA
inspection is misleading on it as _once was and still is intended.
this is similar for "acme" in tests, but with the difference that during
build time we insist to know that COMPOSER_VENDOR_DIR is always relative
to the project root, YMMV.
report: #761 parent f7c0779 commit fa77f35
2 files changed
+22
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
14 | 30 | | |
15 | 31 | | |
16 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments