Dependency injection¶

Definition¶
Dependency injection is a software design pattern that allows the removal of hard-coded dependencies and makes it possible to change them, whether at run-time or compile-time. • phptherightway.com
Usage¶
Examples¶
References¶
- Laravel Docs: Dependency Injection & Controllers
- stackoverflow: What is the use of service providers for Laravel?
- Dependency Injection on methods and closures
- PHP The Right Way: Dependency Injection
- Laracasts: Dependency Injection