mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
25 lines
533 B
TypeScript
25 lines
533 B
TypeScript
import { ApplicationContract } from '@ioc:Adonis/Core/Application'
|
|
|
|
export default class AppProvider {
|
|
constructor(protected app: ApplicationContract) {}
|
|
|
|
public register() {
|
|
// Register your own bindings
|
|
}
|
|
|
|
public async boot() {
|
|
// IoC container is ready
|
|
|
|
// Load CDragon Service
|
|
const CDragon = await import('App/Services/CDragonService')
|
|
await CDragon.default.getContext()
|
|
}
|
|
|
|
public async ready() {
|
|
// App is ready
|
|
}
|
|
|
|
public async shutdown() {
|
|
// Cleanup, since app is going down
|
|
}
|
|
}
|