import type { DIContainer } from '../DIContainer' ; import type { Entity } from './Entity' ; /**
 * The service allows to register new child container in Root Scope
 * Method 'register' will be added during app bootstrap when root container is created
 */ export class RootContainerService { private readonly register : ( container : DIContainer ) => void ; constructor ( register ) { this . register = register ; } registerEntityInRootContainer ( entity ) { this . register ( entity [ 'container' ] ) ; } }