Replies: 1 comment
-
Seems you should import like this // app/Controllers/Http/YourController.ts
import Application from '@ioc:Adonis/Core/Application'
class YourController {
public async method () {
console.log(Application.container)
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Howto obtain ioc container from Controller in AdonisJS V5
Beta Was this translation helpful? Give feedback.
All reactions