diff --git a/templates/provider.txt b/templates/provider.txt index e80873d5..6d9a7fa3 100644 --- a/templates/provider.txt +++ b/templates/provider.txt @@ -20,6 +20,7 @@ import { ApplicationContract } from '@ioc:Adonis/Core/Application' | */ export default class {{ filename }} { + public static needsApplication = true constructor (protected application: ApplicationContract) { }