Joomla! 3.x includes DI (Dependency Injection) container. https://api.joomla.org/cms-3/classes/Joomla.DI.Container.html. I'm curious about it's usage in my joomla component. Did anyone try to set it up?
Also that would be nice to see some examples.
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It only takes a minute to sign up.
Sign up to join this communityJoomla! 3.x includes DI (Dependency Injection) container. https://api.joomla.org/cms-3/classes/Joomla.DI.Container.html. I'm curious about it's usage in my joomla component. Did anyone try to set it up?
Also that would be nice to see some examples.
I saw it in the code but not outside of framework (in any of the extensions). I believe it gonna be used on a bigger scale in Joomla! 4. The main benefit from that is testability but there are others too. If you are not familiar with the concept you can see the explanation and some examples here: