Scalr\Api\Rest\ApiApplication::invokeRoute PHP Method

invokeRoute() public method

Invokes the named route with the list of the arguments and returns the result
public invokeRoute ( string $name ) : mixed
$name string The description of the handler _:
return mixed Returns the result of the invoked handler of the specified Route
    public function invokeRoute($name)
    {
        $args = func_get_args();
        array_shift($args);
        return empty($args) ? call_user_func($this->getRouteHandler($name)) : call_user_func_array($this->getRouteHandler($name), $args);
    }