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

Function create

src/config_provider.ts:46–51  ·  view source on GitHub ↗

* Creates a new config provider that will resolve configuration * when the application is booted. * * @param resolver - Function that receives the application service and returns the configuration * * @example * const mailConfig = configProvider.create(async (app) => ({ * driv

(resolver: ConfigProvider<T>['resolver'])

Source from the content-addressed store, hash-verified

44 * }))
45 */
46 create<T>(resolver: ConfigProvider<T>['resolver']): ConfigProvider<T> {
47 return {
48 type: 'provider',
49 resolver,
50 }
51 },
52
53 /**
54 * Resolves a config provider if the provided value is a valid config provider,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected