Welcome Guest, Not a member yet? Register   Sign In
Poll: D.I. vs Service locator?
You do not have permission to vote in this poll.
yes
37.50%
3 37.50%
no
25.00%
2 25.00%
maybe
37.50%
3 37.50%
Total 8 vote(s) 100%
* You voted for this item. [Show Results]

True D.I. vs service locator.
#1

(This post was last modified: 04-10-2015, 06:46 AM by ciadmin.)

From expiramenting with a lot of frameworks, to building my own, I've found at the core of the whole framework lies a decision that makes a huge difference in the ease of use. I'm talking about dependence injection vs a service locator, and the specific implementation. This is a make or break feature. For instance, I think we can agree that CI's loading of resources is about as simple as it gets. A person who uses CodeIgniter is not going to step right into Symfony 2 dependency injection and feel at home. There is a DI container that is called Pimple which is extremely easy to use, but I've seen where some consider this a service locator. I truly think Pimple should be looked at by the CI4 planners, because it is just so easy to use. I built a framework using it and used some CI classes, and it was very simple, and still has a CI feel to it.

I'm not in a position to open up my repo to the public, but wouldn't mind sharing what I've done with some of the higher ups who will be making the decisions. If anything it might help show a complete implementation of what CI4 could be, and might help with the decision making process.

So, needless to say, I'm interested to hear what other people think about this.
Reply


Messages In This Thread
True D.I. vs service locator. - by skunkbad - 04-09-2015, 10:19 PM
RE: True D.I. vs service locator. - by dmyers - 04-10-2015, 06:44 AM
RE: True D.I. vs service locator. - by skunkbad - 04-10-2015, 06:59 AM
RE: True D.I. vs service locator. - by dmyers - 04-10-2015, 07:09 AM
RE: True D.I. vs service locator. - by kilishan - 07-26-2015, 08:17 PM
RE: True D.I. vs service locator. - by mwhitney - 07-27-2015, 01:19 PM
RE: True D.I. vs service locator. - by kenjis - 07-27-2015, 02:33 PM
RE: True D.I. vs service locator. - by kilishan - 07-27-2015, 07:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB