Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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', {
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: {
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()
}