/**
  * Inject the ServerUrlHelper instance with the request URI.
  *
  * Injects the ServerUrlHelper with the incoming request URI, and then invoke
  * the next middleware.
  *
  * @param ServerRequestInterface $request
  * @param ResponseInterface $response
  * @param callable $next
  * @return ResponseInterface
  */
 public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next)
 {
     $this->helper->setUri($request->getUri());
     return $next($request, $response);
 }
 /**
  * Proxies to `Zend\Expressive\Helper\ServerUrlHelper::setUri()`
  * @param UriInterface $uri
  */
 public function setUri(UriInterface $uri)
 {
     $this->helper->setUri($uri);
 }