Welcome Guest, Not a member yet? Register   Sign In
Dependency injection
#2

[eluser]TheFuzzy0ne[/eluser]
Great article. It's certainly given me something to think about. Thanks for sharing. However, if a model requires another model, then it's dependant on that model, so shouldn't that model load it? It's not quite the same as injecting another object to be used from the outside. In the articles examples, the object being injected doesn't need to be made aware of the object being injected into it. With models loading models, I think it's different. The model depends on the model it's loading.


Messages In This Thread
Dependency injection - by El Forum - 03-27-2009, 04:35 AM
Dependency injection - by El Forum - 03-27-2009, 05:48 AM
Dependency injection - by El Forum - 03-27-2009, 06:03 AM
Dependency injection - by El Forum - 03-27-2009, 06:13 AM
Dependency injection - by El Forum - 03-27-2009, 07:45 AM
Dependency injection - by El Forum - 03-27-2009, 08:09 AM
Dependency injection - by El Forum - 03-27-2009, 08:13 AM
Dependency injection - by El Forum - 03-27-2009, 09:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB