blob: 98d03db5c246c18172fafd33f517fe748f69da4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use std::rc::Rc;
use syrette::{di_container_bind, DIContainer};
use crate::interfaces::printer::IPrinter;
use crate::printer::Printer;
pub fn bootstrap() -> Rc<DIContainer>
{
let mut di_container = DIContainer::new();
di_container_bind!(IPrinter<String> => Printer, di_container);
di_container_bind!(IPrinter<i32> => Printer, di_container);
di_container
}
|