You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
if ($isDevMode) {
spl_autoload_register(['DeprecationLoader', 'loadClass'], true, true);
}
The text was updated successfully, but these errors were encountered:
@nicolas-grekas the reason is that the if (false) or so approach for deprecating classes breaks for some of our users with preloading and we are looking to deprecate old classes a different way.
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: