Possible duplicate:What is dependency injection?
What is the run around "dependency injection" adapted from Java and introduced in Symfony 2? Can someone give an example of a problem and solution with and without dependency injection?
An explanation that is suitable for PHP: http://fabien.potencier.org/article/11/what-is-dependency-injection
BTW: This is not only a Java world. DI and DIC variations are used in most high-level programming languages. This is a universal practice that helps you write more convenient code.
Source: https://habr.com/ru/post/1796648/More articles:How to make an image animation effect, for example, Apple.com? - javascriptForced error due to record recorder.setAudioSource (MediaRecorder.AudioSource.MIC); - androidPrivate template specialization - c ++How to show form in windows service. - c #Google App Engine with Python 2.7 - CouldNotFindModuleError - pythonPassing a case class between Scala and Flex using BlazeDS - flextwisted shell authentication override - pythonGoogle App Engine using UserProperty to bind data - pythonObjectContext.SaveChanges and Duplicate PRIMARY Key - c #The Python equivalent of the Python build library - javaAll Articles