Skip to content
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

fix: unregister meta command custom autoloader when it is no longer needed #919

Merged
merged 1 commit into from
Apr 20, 2020

Conversation

mr-feek
Copy link
Contributor

@mr-feek mr-feek commented Apr 20, 2020

I brought this up in #915

Without removing our custom autoloader in MetaCommand.php, subsequent php code executed in the same process will trigger this autoloader, preventing any usage of class_exists() calls.

If you have any advice on how to write a regression test for this, please feel free to advise! I did pull this commit into my codebase where i was running into the autoloader problem, and it seemed to fix it.

Copy link
Collaborator

@mfn mfn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO this is good (also without tests, no idea either).

The only time when this can get confused is when one of the resolved abstracts also register a autoloader, but that's an edge case IMHO 😄

@barryvdh barryvdh merged commit ce275a9 into barryvdh:master Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants