UNPKG

@athenna/ioc

Version:

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

18 lines (17 loc) 456 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 { FacadeProxyHandler } from '#src/facades/FacadeProxyHandler'; export class Facade { /** * Create a new Facade for the alias specified. */ static createFor(alias) { return new Proxy(this, new FacadeProxyHandler(alias)); } }