Is WordPress Advanced Custom fields an example of dependency injection?
Is WordPress Advanced Custom fields an example of dependency injection? “Dependency Injection” means that you type-hint a method or function as an object of a certain type. Then you inject that object into the code via the constructor, a setter, or a Dependency Injection Container.
So instead of: