UNPKG

@adonisjs/application

Version:

AdonisJS application class to read app related data

29 lines (27 loc) 535 B
import { Application } from "../chunk-GCU5TAHR.js"; import "../chunk-QXFCAPYD.js"; // factories/app.ts var AppFactory = class { #parameters = {}; /** * Merge parameters accepted by the AppFactory */ merge(params) { Object.assign(this.#parameters, params); return this; } /** * Create application class instance */ create(appRoot, importer) { return new Application( appRoot, Object.assign({ importer }, { environment: "web" }, this.#parameters) ); } }; export { AppFactory };