Php

Does Controller must have own container and extend all dependencies from app default container and then redefine that one dependency?

Does Controller must have own container and extend all dependencies from app default container and then redefine that one dependency? Or I must use app controller and specify PhpRenderer for UserController by some rules? (If second solution I'm also wondering can I have this sode somewhere inside User component, assume it is installable and app whould not know much about it)
You already invited:

DrJackilD

Upvotes from:

Laravel's DI implementation is far superior to many of the others. It relies heavily upon Reflection to determine automatically what most (all?) other implementations require the developer to define manually. But you're correct in that what applies generally to Laravel's implementation applies (at least to some extent) to others.

If you wanna answer this question please Login or Register