protected function tryRunMethod($controller, $method)
{
try {
$controller->$method();
} catch (\Exception $e) {
$this->sandResponseCode(Response::HTTP_METHOD_NOT_ALLOWED);
throw new \Exception($e);
}
}
protected function tryRunMethod(Object $controller, $method)
{
try {
$controller->$method();
} catch (\Exception $e) {
$this->sandResponseCode(Response::HTTP_METHOD_NOT_ALLOWED);
throw new \Exception($e);
}
}
protected function tryRunMethod(ControllerClass $controller, $method)
{
...
}