How to use the @adonisjs/fold.resolver.appNamespace function in @adonisjs/fold

To help you get started, we’ve selected a few @adonisjs/fold examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nrempel / adonis-kue / test / functional / commands.spec.js View on Github external
group.before(async () => {
    resolver.appNamespace('App')
    ioc.autoload(path.join(__dirname, './app'), 'App')
    registrar
      .providers([
        '@adonisjs/framework/providers/AppProvider',
        '@adonisjs/redis/providers/RedisProvider',
        path.join(__dirname, '../../providers/KueProvider'),
        path.join(__dirname, '../../providers/CommandsProvider')
      ])
      .register()
    ioc.bind('Adonis/Src/Helpers', () => {
      return new Helpers(__dirname)
    })
    ioc.alias('Adonis/Src/Helpers', 'Helpers')
    ioc.bind('Adonis/Src/Config', () => {
      const config = new Config()
      config.set('kue', {
github nrempel / adonis-kue / test / functional / providers.spec.js View on Github external
group.before(async () => {
    resolver.appNamespace('App')
    registrar
      .providers([
        '@adonisjs/framework/providers/AppProvider',
        '@adonisjs/redis/providers/RedisProvider',
        path.join(__dirname, '../../providers/KueProvider'),
        path.join(__dirname, '../../providers/CommandsProvider')
      ])
      .register()
    ioc.bind('Adonis/Src/Helpers', () => {
      return new Helpers(__dirname)
    })
    ioc.alias('Adonis/Src/Helpers', 'Helpers')
    ioc.bind('Adonis/Src/Config', () => {
      const config = new Config()
      config.set('kue', {
        connection: {
github rhwilr / adonis-bumblebee / test / setup / index.js View on Github external
ioc.bind('Adonis/Src/HttpContext', () => {
    return Context
  })

  ioc.singleton('Adonis/Src/Config', () => {
    const config = new Config()

    config.set('bumblebee', {
      parseRequest: false,
      includeRecursionLimit: 10
    })

    return config
  })

  resolver.appNamespace('App')

  await registrar.providers([
    path.join(__dirname, '../../providers/BumblebeeProvider'),
    path.join(__dirname, '../../providers/CommandsProvider')
  ]).registerAndBoot()
}