Skip to content

Instantly share code, notes, and snippets.

@SamanShafigh
Created November 1, 2018 03:48
Show Gist options
  • Save SamanShafigh/f2eb5363c5356fdf2484169aa1cc7d5b to your computer and use it in GitHub Desktop.
Save SamanShafigh/f2eb5363c5356fdf2484169aa1cc7d5b to your computer and use it in GitHub Desktop.
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