diff options
author | HampusM <hampus@hampusmat.com> | 2022-10-23 18:12:23 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-10-23 18:12:23 +0200 |
commit | 9e01cdf341a7866180b3a63d745f3b2d7578d28a (patch) | |
tree | 0c036b7b4a68e44b6eb2221bf7beb3c34fe9c1c8 /examples/basic | |
parent | 740ef47d49e02ae2f2184f4c347d8eba8aee38fd (diff) |
refactor!: reduce DI container coupling
BREAKING CHANGE: You now have to import the DI containers's interfaces to use the DI containers's methods
Diffstat (limited to 'examples/basic')
-rw-r--r-- | examples/basic/bootstrap.rs | 2 | ||||
-rw-r--r-- | examples/basic/main.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/basic/bootstrap.rs b/examples/basic/bootstrap.rs index 2c45676..1cad500 100644 --- a/examples/basic/bootstrap.rs +++ b/examples/basic/bootstrap.rs @@ -1,7 +1,7 @@ use std::error::Error; use std::rc::Rc; -use syrette::DIContainer; +use syrette::di_container::blocking::prelude::*; use crate::animals::cat::Cat; use crate::animals::dog::Dog; diff --git a/examples/basic/main.rs b/examples/basic/main.rs index dbc9215..7b129e9 100644 --- a/examples/basic/main.rs +++ b/examples/basic/main.rs @@ -11,6 +11,7 @@ mod interfaces; use bootstrap::bootstrap; use interfaces::dog::IDog; use interfaces::human::IHuman; +use syrette::di_container::blocking::prelude::*; fn main() -> Result<(), Box<dyn Error>> { |