MCPcopy
hub / github.com/adonisjs/core / createApp

Method createApp

src/ignitor/main.ts:94–101  ·  view source on GitHub ↗

* Create an instance of AdonisJS application * * @param environment - The environment in which to create the app (web, console, test, repl)

(environment: AppEnvironments)

Source from the content-addressed store, hash-verified

92 * @param environment - The environment in which to create the app (web, console, test, repl)
93 */
94 createApp(environment: AppEnvironments) {
95 debug('creating application instance')
96 this.#app = new Application(this.#appRoot, { environment, importer: this.#options.importer })
97
98 setApp(this.#app)
99 this.#runTapCallbacks(this.#app)
100 return this.#app
101 }
102
103 /**
104 * Tap to access the application class instance.

Callers 14

createMethod · 0.80
makeMethod · 0.80
startMethod · 0.80
runMethod · 0.80
handleMethod · 0.80
providers.spec.tsFile · 0.80
hash.spec.tsFile · 0.80
kernel.spec.tsFile · 0.80
repl.spec.tsFile · 0.80
edge.spec.tsFile · 0.80

Calls 2

#runTapCallbacksMethod · 0.95
setAppFunction · 0.90

Tested by

no test coverage detected