##// END OF EJS Templates
added provided and configure methods to the fluent container configuration, added applyConfig method to the container
added provided and configure methods to the fluent container configuration, added applyConfig method to the container

File last commit:

r142:be7edf08a115 v1.4.0-rc3 default
r142:be7edf08a115 v1.4.0-rc3 default
Show More
config.ts
14 lines | 373 B | video/mp2t | TypeScriptLexer
cin
working on fluent configuration, di annotations removed
r134 import { Services } from "./services";
cin
Completely removed IoC annotations...
r135 import { fluent } from "../di/traits";
cin
tests
r136 import { Box } from "./Box";
cin
Completely removed IoC annotations...
r135
cin
added provided and configure methods to the fluent container configuration, added applyConfig method to the container
r142 export default fluent<Services>().configure({
cin
Completely removed IoC annotations...
r135 host: it => it.value("example.com"),
cin
dependency builder proposal
r110
cin
tests
r136 foo: it => import("./Foo").then(({ Foo }) => it
.factory(() => new Foo())
),
box: it => it
.factory($dependency => new Box($dependency("foo")))
cin
Completely removed IoC annotations...
r135 });