function bootstrap(modules) {
  var injector = new Injector(modules);

  injector.init();

  return injector;
}
Bootstrap an injector from a list of modules, instantiating a number of default components

@param {ModuleDeclaration[]} modules

@return {Injector} a injector to use to access the components