MCPcopy Create free account
hub / github.com/aurelia/framework / constructor

Method constructor

src/framework-configuration.ts:204–225  ·  view source on GitHub ↗

* Creates an instance of FrameworkConfiguration. * @param aurelia An instance of Aurelia.

(aurelia: Aurelia)

Source from the content-addressed store, hash-verified

202 * @param aurelia An instance of Aurelia.
203 */
204 constructor(aurelia: Aurelia) {
205 this.aurelia = aurelia;
206 this.container = aurelia.container;
207 this.info = [];
208 this.processed = false;
209 this.preTasks = [];
210 this.postTasks = [];
211 /**
212 * Custom element's metadata queue for loading view factory
213 * @type {HtmlBehaviorResource[]}
214 */
215 this.behaviorsToLoad = [];
216 /**
217 * Plugin configure functions temporary cache for avoid duplicate calls
218 * @type {Function[]}
219 */
220 this.configuredPlugins = [];
221 this.resourcesToLoad = {};
222 this.preTask(() => aurelia.loader.normalize('aurelia-bootstrapper', undefined)
223 .then(name => this.bootstrapperName = name));
224 this.postTask(() => loadResources(aurelia, this.resourcesToLoad, aurelia.resources));
225 }
226
227 /**
228 * Adds an existing object to the framework's dependency injection container.

Callers

nothing calls this directly

Calls 3

preTaskMethod · 0.95
postTaskMethod · 0.95
loadResourcesFunction · 0.85

Tested by

no test coverage detected