providers/AppProvider.ts   A
last analyzed

Complexity

Total Complexity 8
Complexity/F 1

Size

Lines of Code 22
Function Count 8

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 8
eloc 12
mnd 0
bc 0
fnc 8
dl 0
loc 22
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

4 Functions

Rating   Name   Duplication   Size   Complexity  
A AppProvider.shutdown 0 2 1
A AppProvider.ready 0 2 1
A AppProvider.boot 0 2 1
A AppProvider.register 0 2 1
1
import type { 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
}
22