[v5] How to override Adonis/Core/CookieClient ? #4109
Unanswered
darkzairen
asked this question in
Help
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello AdonisJS community!
I would like to ask how can I override the existing singleton instance of
Adonis/Core/CookieClient
.Invoking the
container.singleton("Adonis/Core/CookieClient")
in myAppProvider
does not override the core implementation.I have to create my
CustomCookieClient
to apply hex encoding/decoding whenever the application reads & writes cookies.Here's my code snippet:
Beta Was this translation helpful? Give feedback.
All reactions