src/CallbackRoute.php
public function dispatch(Request $request, array &$args) {
        $callback = $args['callback'];
        $callback_args = reflect_args($callback, $args['args']);

        $result = call_user_func_array($callback, $callback_args);
        return $result;
    }
public function dispatch(Request $request, array &$args) {
        $callback = $args['callback'];
        $callback_args = reflect_args($callback, $args['args']);

        $result = call_user_func_array($callback, $callback_args);
        return $result;
    }
Dispatch the matched route and call its callback.

@param Request $request The request to dispatch.
@param array &$args The arguments returned from {@link CallbackRoute::dispatch()}.
@return mixed Returns the result of the callback.