ActionMapper Interface Reference

Detailed Description

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

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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.

Note
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).
Parameters
$requestThe Request instance
$responseThe Response instance

Implemented in DefaultActionMapper.