LeagueStats/server/providers/AppProvider.ts

25 lines
530 B
TypeScript

import { ApplicationContract } from '@ioc:Adonis/Core/Application'
export default class AppProvider {
public static needsApplication = true
constructor (protected app: ApplicationContract) {}
public register () {
// Register your own bindings
}
public async boot () {
// IoC container is ready
// Load Match Collections
await import('App/Repositories/MatchRepository')
}
public async ready () {
// App is ready
}
public async shutdown () {
// Cleanup, since app is going down
}
}