Route / Controller
im\route\Controller
Defines a controller than is used when adding a route in a Router
interface Controller {
// Methods
onProcessRequest(im\route\RouteEngine $router, im\http\msg\Request $request, null|im\http\msg\Response $response = NULL): im\http\msg\Response
}
Name | Description |
---|---|
Controller :: onProcessRequest | Called by the RouteEngine when the controller should process a matching request |