All files / src/container container.ts

0% Statements 0/13
100% Branches 0/0
100% Functions 0/0
0% Lines 0/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19                                     
import { ContainerConstants } from '@medjaibot/framework/constants/ContainerConstants';
import { Container } from 'inversify';
import { ApplicationModule } from './modules/ApplicationModule';
import { EventModule } from './modules/EventModule';
import { LoggerModule } from './modules/LoggerModule';
import { PluginModule } from './modules/PluginModule';
 
const applicationContainer = new Container();
 
applicationContainer.load(new LoggerModule());
applicationContainer.load(new PluginModule());
applicationContainer.load(new EventModule());
applicationContainer.load(new ApplicationModule());
 
// Bind the container to itself
applicationContainer.bind(ContainerConstants.DI.CONTAINER).toConstantValue(applicationContainer);
 
export default applicationContainer;