Рет қаралды 5,654
What is DI?
Where To Use?
Why To Use?
Dependency Injection is a software design pattern that allows avoiding hard-coding dependencies and makes possible to change the dependencies both at runtime and compile time.
By using Dependency Injection we can write more maintainable, testable, and modular code. All projects have dependencies. The larger the project the more dependencies is it bound to have; now having a great number of dependencies is nothing bad by itself however how those dependencies are managed and maintained is.
Dependency Injection is not a new pattern and it has been commonly used on many languages like Java, but this pattern is somewhat new in the PHP world and it’s gaining traction quickly thanks for frameworks like laravel.
==================FOLLOW ME ==================
Subscribe for New Releases!
-- QUESTIONS? --
Leave a comment below and I or someone else can help you.
For quick questions
Email me thakurpavinder07@gmail.com
Thanks for all your support!