1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-29 07:47:22 +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:
Gerasimos (Makis) Maropoulos
2017-12-25 20:57:04 +02:00
parent 46505f62db
commit 2ab1456414
33 changed files with 166 additions and 2067 deletions

View File

@@ -1,12 +1,10 @@
package hero
import (
"github.com/kataras/iris/context"
"github.com/kataras/iris/sessions"
)
// It's so easy, no need to be lived anywhere as built'n.. users should understand
// how easy it's by using it.
// Session is a binder that will fill a *sessions.Session function input argument
// or a Controller struct's field.
func Session(sess *sessions.Sessions) func(context.Context) *sessions.Session {
return sess.Start
}
// // Session is a binder that will fill a *sessions.Session function input argument
// // or a Controller struct's field.
// func Session(sess *sessions.Sessions) func(context.Context) *sessions.Session {
// return sess.Start
// }