Create a registration-only interface
Create an interface, implemented by the container, that only allows registration. This way, I could restrict the use of the service locator pattern without restricting the ability to actually register components.
3
votes
1 comment
-
I have plans to achieve this goal, via installers, but in a slightly different way. I'll update this with a link when I have a working prototype.