import { Container } from "inversify" ; import getDecorators from "inversify-inject-decorators" ; import LayoutProcessor from "./services/layout/LayoutProcessor" ; const container = new Container ( ) ; bindToInjection ( LayoutProcessor ) ; const { lazyInject } = getDecorators ( container ) ; export { container , lazyInject } ; export function bindToInjection ( constructor ) { const instance = new constructor ( ) ; container . bind < typeof constructor > ( constructor . name ) . toConstantValue ( instance ) ; return instance ; }