Google News
logo
Laravel - Interview Questions
Explain dependency injection and their types.
It is a technique in which one object is dependent on another object.

There are three types of dependency injection :

* Constructor injection
* setter injection
* interface injection.
Advertisement