Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 303022

hook_stream_wrappers_alter() is broken since modules are not loaded on demand, also change to an event since it's the last hook that forces this during bootstrap

$
0
0

Problem/Motivation

For calling hook_stream_wrappers_alter() we need to inject the ModuleHandler, which needs to load all modules, so we don't have lazy Drupal.

Proposed resolution

Convert to an event and subscribe to that event at compile time (meaning via a tagged service in services.yml) instead of at run time, so we don't need to load all modules to find subscribers.

Remaining tasks

- Do it.

User interface changes

* None.

API changes

Remove hook_stream_wrappers_alter() already deprecated - simply unsupported.

Note: Critical because of performance and because it breaks hook_module_implements_alter().


Viewing all articles
Browse latest Browse all 303022

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>