mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +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:
@@ -11,7 +11,9 @@ var defaultSessionManager = sessions.New(sessions.Config{})
|
||||
// which requires a binded session manager in order to give
|
||||
// direct access to the current client's session via its `Session` field.
|
||||
//
|
||||
// SessionController is deprecated please use the `mvc.Session(manager)` instead, it's more useful,
|
||||
// SessionController is deprecated please use the new dependency injection's methods instead,
|
||||
// i.e `mvcApp.AddDependencies(sessions.New(sessions.Config{}).Start)`.
|
||||
// It's more controlled by you,
|
||||
// also *sessions.Session type can now `Destroy` itself without the need of the manager, embrace it.
|
||||
type SessionController struct {
|
||||
Manager *sessions.Sessions
|
||||
|
||||
Reference in New Issue
Block a user