call_user_func

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Call the callback given by the first parameter
call_user_func(callable $callbackmixed ...$args): mixed
    public function invokeRoute(Request $requeststring $methodstring $uri): Response

    
{

        return 
call_user_func($this->routes[$method.$uri], $request);

    }

}
        }



        try {

            
call_user_func($this->callback);

        } catch (
Throwable $e) {

            
$this->exceptionHandler->report($e);

        }