Ok, I implemented a Component and it is working perfectly. Hell it does the job well enough that I want to publish it as an extension, but I don’t know why it works though. Yes, I understand dependency injection as a pattern, but I generally leverage the documentation in a framework (Like werkzeug) to get into the details.
I can read in apistar.core the Component class definition, and I see that it’s iterable. Why is that necessary? What is it doing with the init function? Preload?
I think the answers I am looking for reside in apistar.components.dependency. I am just struggling to convert code in my head to something like a natural language explanation.
Any help would be appreciated. Thanks guys.