(!) work in progress.
This package adds the inversion of control (IoC) code pattern to your project.
Using yarn
$ yarn add apex-di
or npm
$ npm install apex-di --save
Apex DI uses the YAML syntax to configure the service container.
See this example for a usage example.
Allow loading specific classes (functions) from a required file using the following syntax:
services:
renderer:
class: !require ['three', 'WebGLRenderer']
The above would require the module three
, then instantiate WebGLRenderer
from that module.