function createInjector(options) {

  options = options || {};

  /**
   * @type { ModuleDeclaration }
   */
  var configModule = {
    'config': [ 'value', options ]
  };

  var modules = [ configModule, CoreModule ].concat(options.modules || []);

  return bootstrap(modules);
}
Creates an injector from passed options.

@template ServiceMap
@param {DiagramOptions} [options]

@return {Injector<ServiceMap>}