UNPKG

@athenna/ioc

Version:

Global Ioc helper for Athenna ecosystem. Built on top of awilix.

18 lines (17 loc) 410 B
/** * @athenna/ioc * * (c) João Lenon <lenon@athenna.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { Ioc as IocImpl } from '#src/container/Ioc'; export {}; const __global = global; if (!__global.ioc) { __global.ioc = new IocImpl(); } if (!__global.container) { __global.container = new IocImpl(); }