Calls a routine on the current route and returns its result
public routineCall ( string $type, string $method, Respect\Rest\Routines\Routinable $routine, array &$params ) : mixed | ||
$type | string | The name of the routine (accept, when, etc) |
$method | string | The method name (GET, HEAD, POST, etc) |
$routine | Respect\Rest\Routines\Routinable | Some routine instance |
$params | array | Params from the routine |
return | mixed | Whatever the routine returns |