You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know its a bit far off, but currently controllers derive their state via the callAction method. That means that the code beign written in the action cannot be stateless .. ie, all the actions, when called directly, in a newly 'composed' controller, need a global state.
This issue can be easily resolved by the controller having a request and response property in the controller.
The actions read from request and modify the response.
So the closure that the router forms for wrapping a controller action can just instantiate the controller with the current request, let the controller process the response, and then just return it .. what say ?
The text was updated successfully, but these errors were encountered:
I know its a bit far off, but currently controllers derive their state via the callAction method. That means that the code beign written in the action cannot be stateless .. ie, all the actions, when called directly, in a newly 'composed' controller, need a global state.
This issue can be easily resolved by the controller having a request and response property in the controller.
The actions read from request and modify the response.
So the closure that the router forms for wrapping a controller action can just instantiate the controller with the current request, let the controller process the response, and then just return it .. what say ?
The text was updated successfully, but these errors were encountered: