* Create an instance of AdonisJS application * * @param environment - The environment in which to create the app (web, console, test, repl)
(environment: AppEnvironments)
| 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. |
no test coverage detected