ControllerContext
class ControllerContext (View source)
The controller context holds information about the request, response, arguments and further details of a controller. Instances of this class act as a container for conveniently passing the information to other classes who need it, usually views being views or view helpers.
Properties
protected ActionRequest | $request | ||
protected ActionResponse | $response | ||
protected Arguments | $arguments | ||
protected UriBuilder | $uriBuilder | ||
protected FlashMessageService | $flashMessageService |
Methods
Constructs this context
Get the request of the controller
Get the arguments of the controller
Returns the URI Builder bound to this context
Get the flash message container
Details
__construct(ActionRequest $request, ActionResponse $response, Arguments $arguments, UriBuilder $uriBuilder)
Constructs this context
ActionRequest
getRequest()
Get the request of the controller
ActionResponse
getResponse()
deprecated
deprecated
The legacy response of the controller.
Arguments
getArguments()
Get the arguments of the controller
UriBuilder
getUriBuilder()
Returns the URI Builder bound to this context
FlashMessageContainer
getFlashMessageContainer()
Get the flash message container