I was wondering if there is a Laravel like DIC (IoC) out there that is “easier” to use in isolation from Laravel. The primary feature(s) I’m looking for are auto discovery, instantiation, and injection of services into NONE service classes. So the ability to instantiate ANY class through the container and have dependencies auto discovered and injected like the Laravel IoC does using reflection.
Have you looked at Auryn? It seems to be highly regarded within the community.
This is a shameless plug, but my container Dice can do this
Symfony’s DIC component is a standalone library. I’d almost bet it is what Laravel is using too.
Scott
Laravel uses a completely different container, not the Symfony one. The Symfony one is not capable of what I’m referring or at least out out of the box as far as I know.
Larvael uses a container called Illuminate AFAIK. However, when I looked it was poorly documented for standalone use.
Yeah, it is a pain to use standalone but it is possible from what I’ve read.
Thanks for that. You learn something new everyday.
Scott
What is it you are looking for?
Scott
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.