Skip to content

Commit

Permalink
feat(vow-bindings): hook session response in vow suite
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 30, 2017
1 parent 908808a commit d2a4374
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion providers/SessionProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ class SessionProvider extends ServiceProvider {
_registerVowTrait () {
this.app.bind('Adonis/Traits/Session', (app) => {
const Config = app.use('Adonis/Src/Config')
return ({ Request }) => require('../src/VowBindings/Request')(Request, Config)
return ({ Request, Response }) => {
require('../src/VowBindings/Request')(Request, Config)
require('../src/VowBindings/Response')(Response, Config)
}
})
this.app.alias('Adonis/Traits/Session', 'Session/Client')
}
Expand Down

0 comments on commit d2a4374

Please sign in to comment.