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

Method make

factories/core/ace.ts:49–64  ·  view source on GitHub ↗
(ignitorOrAppRoot: URL | Ignitor, options?: IgnitorOptions)

Source from the content-addressed store, hash-verified

47 */
48 async make(appRoot: URL, options?: IgnitorOptions): Promise<Kernel>
49 async make(ignitorOrAppRoot: URL | Ignitor, options?: IgnitorOptions): Promise<Kernel> {
50 if (ignitorOrAppRoot instanceof Ignitor) {
51 const app = ignitorOrAppRoot.createApp('console')
52 await app.init()
53 return createAceKernel(app)
54 }
55
56 const app = new IgnitorFactory()
57 .withCoreConfig()
58 .withCoreProviders()
59 .create(ignitorOrAppRoot, options!)
60 .createApp('console')
61
62 await app.init()
63 return createAceKernel(app)
64 }
65}

Callers 15

constructorMethod · 0.80
registerLoggerMethod · 0.80
registerEncryptionMethod · 0.80
registerServerMethod · 0.80
registerRouterMethod · 0.80
bootMethod · 0.80
readyMethod · 0.80
bootMethod · 0.80
registerHashMethod · 0.80
resolveBindingForReplFunction · 0.80
bootMethod · 0.80
runMethod · 0.80

Calls 5

createAceKernelFunction · 0.90
createAppMethod · 0.80
withCoreProvidersMethod · 0.80
withCoreConfigMethod · 0.80
createMethod · 0.45

Tested by 1

registerRoutesFunction · 0.64