Design patterns·Wiring: injection, containers and lifetimes
you stopped writing the loop and started writing the thing the framework calls, and you no longer decide when.
Inversion of control
Also calledIoC, control inversion
The general shift where a framework owns the flow of control and your code fills in the parts, rather than your code calling a library when it chooses. Dependency injection is one specific case of it — control over which object you get — but so are event handlers, template methods and lifecycle callbacks. Confusing the general idea with the specific technique is the most common wrong answer to the interview question about the difference.