Open live627 opened 8 years ago
nods we do need a DIC, I know there was a discussion about this somewhere, I think @joshuaadickerson had some ideas about this as well.
I'm not sure when its right to add this ... 1.1, 2.0 ... maybe 1.2 if we go that route, not sure.
Anyway its great idea, I need to read up more about this library to get me some educated bout it.
I want to implement a dependency injector into Elk. I was thinking on Simplex, which is a Pimple 3 fork with full container-interop compliance and cross-framework service-provider support.
Example implantation:
All singletons can be converted back to real instantiable objects and included in the container. Instead of random objects passed to all controllers, just the container goes.