class ActionRequestFactory (View source)

Creates an ActionRequest from a PSR-7 http request and sets appropriate defaults.

Methods

createActionRequest(ServerRequestInterface $httpRequest, array $additionalArguments = [])

No description

array
mergeHttpRequestArguments(ServerRequestInterface $httpRequest)

No description

array
mergeHttpRequestArgumentsWithAdditionalArguments(array $arguments, array $additionalArguments)

No description

prepareActionRequest(ServerRequestInterface $httpRequest)

No description

setDefaultControllerAndActionNameIfNoneSpecified(ActionRequest $actionRequest)

Set the default controller and action names if none has been specified.

Details

ActionRequest createActionRequest(ServerRequestInterface $httpRequest, array $additionalArguments = [])

No description

Parameters

ServerRequestInterface $httpRequest
array $additionalArguments

Return Value

ActionRequest

Exceptions

InvalidActionNameException
InvalidArgumentNameException
InvalidArgumentTypeException
InvalidControllerNameException

protected array mergeHttpRequestArguments(ServerRequestInterface $httpRequest)

No description

Parameters

ServerRequestInterface $httpRequest

Return Value

array

protected array mergeHttpRequestArgumentsWithAdditionalArguments(array $arguments, array $additionalArguments)

No description

Parameters

array $arguments
array $additionalArguments

Return Value

array

protected ActionRequest prepareActionRequest(ServerRequestInterface $httpRequest)

No description

Parameters

ServerRequestInterface $httpRequest

Return Value

ActionRequest

protected ActionRequest setDefaultControllerAndActionNameIfNoneSpecified(ActionRequest $actionRequest)

Set the default controller and action names if none has been specified.

Parameters

ActionRequest $actionRequest

Return Value

ActionRequest

Exceptions

InvalidActionNameException
InvalidControllerNameException