Talk in English - US at php[tek] 2019
View Slides: https://www.slideshare.net/AlenaHolligan/dependency-injection-147619967
Short URL: https://joind.in/talk/b024a (QR-Code (opens in new window))
Dependency injection is a powerful technique allowing different parts of a system to collaborate with each other. Injection is the passing of a dependency (such as a service or database connection) to an object that would use it. This way, the object need not change because the outside service changed. This often also allows the object to be more easily tested by injecting a mock or stub service as the dependency.