UNPKG

@athenna/ioc

Version:

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

40 lines (39 loc) 774 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 } from '#src/container/Ioc'; export class ServiceProvider { constructor() { this.container = new Ioc(); } /** * Set where the environment of application where this provider can * be registered or not. */ get environment() { return ['*']; } /** * Register any application services. */ register() { // } /** * Bootstrap any application services. */ boot() { // } /** * Shutdown any application services. */ shutdown() { // } }