Skip to content

Commit eb7ac89

Browse files
author
hirsch88
committed
refactor container
1 parent 7833119 commit eb7ac89

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/container.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ import { Types } from './constants/Types';
1212

1313
import * as request from 'request';
1414

15-
15+
/**
16+
* Here you can bind all your third-party libraries like
17+
* request, lodash and so on. Those will be bound before
18+
* everything else.
19+
*/
1620
ioc.configureLib((container: Container) => {
1721

1822
decorate(injectable(), request);
@@ -25,9 +29,12 @@ ioc.configureLib((container: Container) => {
2529
return container;
2630
});
2731

28-
32+
/**
33+
* Bind custom classes here. This will be bound at the end
34+
*/
2935
ioc.configure((container: Container) => {
3036

37+
// Add your custom class here
3138

3239
return container;
3340
});

0 commit comments

Comments
 (0)