mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Lint and update
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
import { ApplicationContract } from '@ioc:Adonis/Core/Application'
|
||||
import Logger from "@ioc:Adonis/Core/Logger";
|
||||
import Logger from '@ioc:Adonis/Core/Logger'
|
||||
|
||||
export default class AppProvider {
|
||||
public static needsApplication = true
|
||||
public static needsApplication = true
|
||||
|
||||
constructor (protected app: ApplicationContract) {
|
||||
constructor(protected app: ApplicationContract) {
|
||||
}
|
||||
|
||||
public register () {
|
||||
public register() {
|
||||
// Register your own bindings
|
||||
}
|
||||
|
||||
public async boot () {
|
||||
public async boot() {
|
||||
// IoC container is ready
|
||||
Logger.info('Application is booting. Please wait...')
|
||||
}
|
||||
|
||||
public async ready () {
|
||||
public async ready() {
|
||||
// App is ready
|
||||
const StatsTask = await import('App/Tasks/StatsTask')
|
||||
const StatesTask = await import('App/Tasks/StatesTask')
|
||||
@@ -27,7 +27,7 @@ export default class AppProvider {
|
||||
Logger.info('Application is ready!')
|
||||
}
|
||||
|
||||
public async shutdown () {
|
||||
public async shutdown() {
|
||||
// Cleanup, since app is going down
|
||||
const StatsTask = (await import('App/Tasks/StatsTask'))
|
||||
const StatesTask = await import('App/Tasks/StatesTask')
|
||||
|
||||
Reference in New Issue
Block a user