Commit 031e30b
committed
[BUGFIX] Make InstalledVersions work again
When including multiple autoload.php files during
the same runtime, Composer InstalledVersions relies
on the registered autoloaders to be able to resolve
all available packages. If class alias loader is now
calling ->unregister API, the static registry of available
classes is removed, which does not reflect the state
when class alias loader is registered.
Therefore, we now call spl_autoload_unregister ourselves
instead of using the API, because the classes will
be loadable, just not directly but proxied through
class alias loader1 parent f80021a commit 031e30b
2 files changed
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 49 | | |
59 | 50 | | |
60 | 51 | | |
| |||
0 commit comments