import { Container } from 'inversify' ; import { registerContextAwareLoggerToContainer } from 'logger' ; export function setupRequestContextIocContainer ( processLifeCycleContainer ) { const container = new Container ( { autoBindInjectable : true } ) ; container . parent = processLifeCycleContainer ; registerContextAwareLoggerToContainer ( container ) ; return container ; }