ActionMapper Interface Reference

Detailed Description

ActionMapper implementations are responsible for instantiating and executing Controllers based on the referring Controller and the given action.

ingo herwig

Definition at line 21 of file ActionMapper.php.

+ Inheritance diagram for ActionMapper:

Public Member Functions

 processAction (Request $request, Response $response)

Member Function Documentation

◆ processAction()

processAction ( Request  $request,
Response  $response 

Process an action depending on a given referrer.

The ActionMapper will instantiate the required Controller class as determined by the request's action key and delegates the request to it.

This method is static so that it can be used without an instance. (This is necessary to call it in onError() which cannot be a class method because php's set_error_handler() does not allow this).
$requestThe Request instance
$responseThe Response instance

Implemented in DefaultActionMapper.