public function dispatch(ServerRequestInterface $request, callable $default)
    {
        $handler = new Handler($this->middleware, $default);

        return $handler->handle($request);
    }
public function dispatch(ServerRequestInterface $request, callable $default)
    {
        $handler = new Handler($this->middleware, $default);

        return $handler->handle($request);
    }
public function dispatch ( ServerRequestInterface $ request , callable $ default ) { $ handler = new Handler ( $ this -> middleware , $ default ) ; return $ handler -> handle ( $ request ) ; }
Dispatch the middleware stack.

@param ServerRequestInterface $request
@param callable $default to call when no middleware is available

@return ResponseInterface
Dispatch the middleware stack .