Dependency injection topic
Dependency injection (DI) is an implementation of the dependency inversion principle with the aim of separation of concerns by separating the depndency's implementation from the class that's using it. That kind of abstraction makes it possible to have different implementations with the same public methods so the class using it, doesn't need to care which of the implementations is used. This is also especially useful for unit testing.
There are different types of dependency injection:
- constructor injection
- setter injection
- interface injection
zsm-annotated-services
A component to define how dependency injection has to be performed with Zend\ServiceManager via annotations
dagger-android-injection
Sample project explains Dependency Injection in Android using dagger-android framework.
Microsoft.Extensions.NamedDependencyInjection
Extensions for .NET Core Dependency Injection container that allow to resolve dependencies by key
diyai
Dependency Injection in JavaScript/ES6
jasq
AMD dependency injector integrated with Jasmine
php-di-container-benchmarks
Benchmark for some popular PHP Dependency Injection Containers.
di-builder
A library that makes easier the creation of compiled containers using Symfony DI
Instant-Weather
An Android weather application implemented using the MVVM pattern, Retrofit2, Dagger Hilt, LiveData, ViewModel, Coroutines, Room, Navigation Components, Data Binding and some other libraries from the...
nex
Aiming to simplify the construction of JSON API service
yue
simple demo for nex(https://github.com/lonnng/nex)