diff options
Diffstat (limited to 'providers/AppProvider.ts')
-rw-r--r-- | providers/AppProvider.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/providers/AppProvider.ts b/providers/AppProvider.ts new file mode 100644 index 0000000..8d64412 --- /dev/null +++ b/providers/AppProvider.ts | |||
@@ -0,0 +1,21 @@ | |||
1 | import { ApplicationContract } from '@ioc:Adonis/Core/Application'; | ||
2 | |||
3 | export default class AppProvider { | ||
4 | constructor(protected app: ApplicationContract) {} | ||
5 | |||
6 | public register() { | ||
7 | // Register your own bindings | ||
8 | } | ||
9 | |||
10 | public async boot() { | ||
11 | // IoC container is ready | ||
12 | } | ||
13 | |||
14 | public async ready() { | ||
15 | // App is ready | ||
16 | } | ||
17 | |||
18 | public async shutdown() { | ||
19 | // Cleanup, since app is going down | ||
20 | } | ||
21 | } | ||