LeagueStats/server/providers/AppProvider.ts

26 lines
458 B
TypeScript
Raw Normal View History

2020-10-04 11:37:05 +00:00
import { IocContract } from '@adonisjs/fold'
export default class AppProvider {
constructor (protected $container: IocContract) {
}
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 shutdown () {
// Cleanup, since app is going down
}
public ready () {
// App is ready
}
}