AppProvider.ts 440 B

123456789101112131415161718192021
  1. import type { ApplicationContract } from '@ioc:Adonis/Core/Application'
  2. export default class AppProvider {
  3. constructor(protected app: ApplicationContract) {}
  4. public register() {
  5. // Register your own bindings
  6. }
  7. public async boot() {
  8. // IoC container is ready
  9. }
  10. public async ready() {
  11. // App is ready
  12. }
  13. public async shutdown() {
  14. // Cleanup, since app is going down
  15. }
  16. }