Zend\Mvc\Controller\AbstractRestfulController::dispatch
Dispatch a request
If the route match includes an "action" key, then this acts basically like a standard action controller. Otherwise, it introspects the HTTP method to determine how to handle the request, and which method to delegate to.
Signature
public function dispatch(RequestInterface
$request,
[ResponseInterface
$response = null] )
Parameters
$request
— Zend\Stdlib\RequestInterface
$response
— Zend\Mvc\Controller\null|Response
Returns
- mixed|Response