zef_di_inglue
This package offers an implementation for the ServiceLocatorAdapter
from package zef_di_abstractions.
Caution
This project is discontinued, as it got renamed. Check out the new package zef_di_core instead.
Getting Started
To get started with zef_di_inglue
, add it to your project's dependency list:
dependencies:
zef_di_inglue: ^latest_version
Usage
- Set up the adapter
Check the readme of zef_di_abstractions to get started. In the setup process you will need to add an adapter for the ServiceLocator
, and thats where this package comes in play:
void main() {
ServiceLocatorBuilder()
.withAdapter(InglueServiceLocatorAdapter()) // This is your adapter which handles the service registration
.build();
// Your application logic here
}
- Register the services
Now you can continue to register the services. Again, see the readme of zef_di_abstractions
Contributing
Contributions are welcome! Please read our contributing guidelines and code of conduct before submitting pull requests or issues. Also every annotation or idea to improve is warmly appreciated.