Skip to content

Commit

Permalink
fix(ViewProvider): create by default the View alias (#636)
Browse files Browse the repository at this point in the history
* fix(ViewProvider): create by default the View alias

* fix(lint): remove trailing spaces
  • Loading branch information
RomainLanz authored and thetutlage committed Sep 8, 2017
1 parent b58ec34 commit 3c36453
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/ViewProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ViewProvider extends ServiceProvider {
const View = require('../src/View')
return new View(Helpers, Config.get('app.views.cache'))
})
this.app.alias('Adonis/Src/View', 'View')
}

/**
Expand Down

0 comments on commit 3c36453

Please sign in to comment.