Updated: Comment #N
Problem/Motivation
We have various compiler passes that build lists based on service tags, or add services to an add() call on another service, or do stuff like that. Cool.
We have a compiler pass that lets modules alter the services that are registered, including removing them. Cool.
The alter pass happens after most of the lists are built. Not cool. That means the lists are potentially wrong, and all kinds of fatal errors happen on missing service IDs and stuff.
Proposed resolution
Make the alter pass the first one to fire. That way, the list-building passes are all operating on a fully-prepared container. Easy peasy.
The attached patch just changes the compiler order, and adds a doc note to say that it has to come first.
Remaining tasks
Commit this?
User interface changes
None.
API changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| alter-providers-early.patch | 1.47 KB | Crell |
Comments
Comment #1
Crell commentedFix title, duh.
Comment #2
katbailey commentedNo brainer.
Comment #3
webchickCommitted and pushed to 8.x. Thanks!