diff options
author | HampusM <hampus@hampusmat.com> | 2022-09-12 20:22:13 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-09-17 14:33:15 +0200 |
commit | c1e682c25c24be3174d44ceb95b0537c38299d0c (patch) | |
tree | 6e59f37e1b98e68fad2e3e2fe4a428ac97fcf8b4 /examples/unbound | |
parent | e8e48906a3899e71c9c9d86a3d4528cb7d17e5b9 (diff) |
feat!: allow factories access to DI container
BREAKING CHANGE: Factory types should now be written with the Fn trait instead of the IFactory trait and the to_factory & to_default_factory methods of BindingBuilder now expect a function returning a factory function
Diffstat (limited to 'examples/unbound')
-rw-r--r-- | examples/unbound/bootstrap.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/unbound/bootstrap.rs b/examples/unbound/bootstrap.rs index 8df6678..04643dc 100644 --- a/examples/unbound/bootstrap.rs +++ b/examples/unbound/bootstrap.rs @@ -3,12 +3,9 @@ use std::rc::Rc; use anyhow::Result; use syrette::DIContainer; -// Concrete implementations use crate::animal_store::AnimalStore; use crate::animals::dog::Dog; use crate::animals::human::Human; -// -// Interfaces use crate::interfaces::animal_store::IAnimalStore; use crate::interfaces::dog::IDog; use crate::interfaces::human::IHuman; |