- Stable release for null safety
- Add
get
as shortcut forgetDependency
- Add deprecated annotation to
getDependency
- Some preparations for nullability
- [bug] Fixed the bug, that the library detects a wrong circular dependency (#25)
- Add travis ci badge to readme
- Reformat using dartfmt
- Refactor docs
- Add remove dependency method
- Add override dependencies property
- Breaking Changes! Injector is not a singleton.
You can use it like a singleton with the static instance
Injector.appInstance
- You can register your dependencies with a name. But be careful,
you need always the generic type! It looks like
Injector.allInstance.registerDependency<UserService>((injector) => UserServiceImpl), dependencyName: "MyCustomName");
- Add some documentation for each class
- Change license from BSD-3 to Apache 2
- Upgrade analysis_options.yaml
- Add missing Cast ("as T")
- Add Test - Cycle dependencies
- Upgrade pubspec.yaml (Change dart sdk constraint)
- Update README.md
- Update Description
- Create package,
- Add Injector class
- Add unit tests for "Injector"
- Add example - How to deal with the injector / dependency injector