From 83008335991b7ab81a6b03ac15f6818baee7fdaf Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Tue, 23 Jul 2019 17:56:00 +0300 Subject: [PATCH] remove the deprecated session controller as the dynamic dependency is much easier for understanding --- MVC.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/MVC.md b/MVC.md index e4499a8..46ef155 100644 --- a/MVC.md +++ b/MVC.md @@ -88,9 +88,7 @@ useful to call middlewares or when many methods use the same collection of data. Optional `EndRequest(ctx)` function to perform any finalization after any method executed. -Inheritance, recursively, see for example our `mvc.SessionController`, it has the `Session *sessions.Session` and `Manager *sessions.Sessions` as embedded fields -which are filled by its `BeginRequest`, [here](https://github.com/kataras/iris/blob/master/mvc/session_controller.go). -This is just an example, you could use the `sessions.Session` which returned from the manager's `Start` as a dynamic dependency to the MVC Application, i.e +Inheritance, recursively, e.g. our [mvc session-controller example](https://github.com/kataras/iris/tree/master/_examples/mvc/session-controller), has the `Session *sessions.Session` as struct field which is filled by the sessions manager's `Start` as a dynamic dependency to the MVC Application: `mvcApp.Register(sessions.New(sessions.Config{Cookie: "iris_session_id"}).Start)`. Access to the dynamic path parameters via the controller's methods' input arguments, no binding is needed.