2020-11-06 20:58:40 +00:00
|
|
|
import { ApplicationContract } from '@ioc:Adonis/Core/Application'
|
2020-10-04 11:37:05 +00:00
|
|
|
|
|
|
|
|
export default class AppProvider {
|
2020-11-06 20:58:40 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
|
2020-11-06 20:58:40 +00:00
|
|
|
public async ready () {
|
|
|
|
|
// App is ready
|
2020-10-04 11:37:05 +00:00
|
|
|
}
|
|
|
|
|
|
2020-11-06 20:58:40 +00:00
|
|
|
public async shutdown () {
|
|
|
|
|
// Cleanup, since app is going down
|
2020-10-04 11:37:05 +00:00
|
|
|
}
|
|
|
|
|
}
|