ActionMapper Interface Reference
Detailed Description
ActionMapper implementations are responsible for instantiating and executing Controllers based on the referring Controller and the given action.
Definition at line 21 of file ActionMapper.php.
Inheritance diagram for ActionMapper:
Public Member Functions | |
processAction (Request $request) | |
reset () | |
Member Function Documentation
processAction | ( | Request | $request | ) |
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
-
$request A reference to a Request instance
- Returns
- Response instance
Implemented in DefaultActionMapper.
reset | ( | ) |
Reset the state of ActionMapper to initial.
Especially clears the processed controller queue.
Implemented in DefaultActionMapper.