LeagueStats/server/providers/AppProvider.ts

26 lines
530 B
TypeScript
Raw Normal View History

import { ApplicationContract } from '@ioc:Adonis/Core/Application'
2020-10-04 11:37:05 +00:00
export default class AppProvider {
public static needsApplication = true
constructor (protected app: ApplicationContract) {}
2020-10-04 11:37:05 +00:00
public register () {
// Register your own bindings
}
2020-10-05 19:33:17 +00:00
public async boot () {
2020-10-04 11:37:05 +00:00
// IoC container is ready
2020-10-05 19:33:17 +00:00
// Load Match Collections
await import('App/Repositories/MatchRepository')
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
}
}