mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
split of the mvc and the new hero package is completed, now handlers with input and output binding feature is a different feature than the mvc, however the mvc controller's methods can use the hero dependency injection as before (v10+)
Former-commit-id: d67f5a5ed9033286bcc4c04f6be612823cba2a57
This commit is contained in:
@@ -52,10 +52,7 @@ func newApp() *iris.Application {
|
||||
// If dependencies are registered without field or function's input arguments as
|
||||
// consumers then those dependencies are being ignored before the server ran,
|
||||
// so you can bind many dependecies and use them in different controllers.
|
||||
// func(ctx iris.Context) *sessions.Session {
|
||||
// return sess.Start(ctx)
|
||||
// }, -> same as mvc.Session(sess):
|
||||
mvc.Session(sess),
|
||||
sess.Start,
|
||||
time.Now(),
|
||||
)
|
||||
visitApp.Register(new(VisitController))
|
||||
|
||||
Reference in New Issue
Block a user