New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow the composer class loader to be absent, for composer/composer:2.2.0
compatibility
#90
Allow the composer class loader to be absent, for composer/composer:2.2.0
compatibility
#90
Conversation
With composer 2.2.0, some autoloaders are loaded even before the `vendor/autoload.php` file is dumped. This leads to installation crashes in some circumstances due to the fact that this component throws a `RuntimeException` in case the autoloader could not be found. Due to the fact, that this works properly after the autoloader got dumped, we can safely not register the prepend/append autoloader registration for this case. Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
…calls Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
916d5a1
to
e71bcbb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although I only reviewed the code structure, not sure if this fixes the actual issue
Will see if that works after we created release. Actually quite tough to test this without having a "stable" release due to the fact that manipulating Since we are getting rid of this component anyways, I think this bugfix should do its trick. |
We can release right away, unless other patches are needed |
Looks good to me too for as much as I'm familiar with this code.. At least the intent sounds good :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The only thoughts I have are if the file exists but is not readable, but I guess the error for that would be descriptive enough
composer/composer:2.2.0
compatibility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes perfect sense to me. 🚢
Description
With composer 2.2.0, some autoloaders are loaded even before the
vendor/autoload.php
file is dumped.This leads to installation crashes in some circumstances due to the fact that this component throws a
RuntimeException
in case the autoloader could not be found.Due to the fact, that this works properly after the autoloader got dumped, we can safely not register the prepend/append autoloader registration for this case.
Closes #89