-
Notifications
You must be signed in to change notification settings - Fork 20
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
Class deprecation via class loader #3
Comments
Please don't do this in this lib, that'd be past its domain to me. |
@nicolas-grekas the reason is that the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of complicated in file approaches, we could provide a deprecation class loader that just checks and triggers deprecations and then delegates autoloading further to Composer.
This could hook into Composer as a plugin and generate a map of deprecated classes from all installed packages, and then in your code you would only prepend the autoloader:
The text was updated successfully, but these errors were encountered: