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()
.