LeagueStats/server/providers/AppProvider.ts

26 lines
533 B
TypeScript
Raw Permalink Normal View History

import { ApplicationContract } from '@ioc:Adonis/Core/Application'
2020-10-04 11:37:05 +00:00
export default class AppProvider {
constructor(protected app: ApplicationContract) {}
public register() {
2020-10-04 11:37:05 +00:00
// Register your own bindings
}
public async boot() {
2020-10-04 11:37:05 +00:00
// IoC container is ready
// Load CDragon Service
const CDragon = await import('App/Services/CDragonService')
await CDragon.default.getContext()
2020-10-04 11:37:05 +00:00
}
public async ready() {
// App is ready
2020-10-04 11:37:05 +00:00
}
public async shutdown() {
// Cleanup, since app is going down
2020-10-04 11:37:05 +00:00
}
}