Set MVC response object
Parameters: | Response – |
---|---|
Return type: | View |
Set the event manager instance
Parameters: | EventManagerInterface – |
---|---|
Return type: | View |
Retrieve the event manager instance
Lazy-loads a default instance if none available
Return type: | EventManagerInterface |
---|
Add a rendering strategy
Expects a callable. Strategies should accept a ViewEvent object, and should return a Renderer instance if the strategy is selected.
Internally, the callable provided will be subscribed to the “renderer” event, at the priority specified.
Parameters: |
|
---|---|
Return type: | View |
Add a response strategy
Expects a callable. Strategies should accept a ViewEvent object. The return value will be ignored.
Typical usages for a response strategy are to populate the Response object.
Internally, the callable provided will be subscribed to the “response” event, at the priority specified.
Parameters: |
|
---|---|
Return type: | View |
Render the provided model.
Internally, the following workflow is used:
Parameters: | Model – |
---|---|
Throws ExceptionRuntimeException: | |
Return type: | void |