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

Method preload

factories/core/ignitor.ts:70–73  ·  view source on GitHub ↗

* Define preload actions to run during application initialization. * These actions are executed after the application is booted. * * @param action - Function to execute during preload phase * * @example * ```ts * factory.preload((app) => { * // Register custom bindings *

(action: (app: ApplicationService) => void | Promise<void>)

Source from the content-addressed store, hash-verified

68 * ```
69 */
70 preload(action: (app: ApplicationService) => void | Promise<void>): this {
71 this.#preloadActions.push(action)
72 return this
73 }
74
75 /**
76 * Merge core providers with user defined providers

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected