Created
November 1, 2018 03:48
-
-
Save SamanShafigh/f2eb5363c5356fdf2484169aa1cc7d5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Container from './container'; | |
export default class Kernel { | |
constructor(builder) { | |
this.container = new Container(builder); | |
} | |
/** | |
* Boot the kernel, load all services | |
*/ | |
async boot() { | |
const bootP = this.container.boot(); | |
return Promise.all(bootP); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment