public function create(ServerRequestInterface $request, Route $route)
    {
        $this->uriGenerator->setRequest($request);
        return new Context($request, $route, $this->uriGenerator);
    }
public function create(ServerRequestInterface $request, Route $route)
    {
        $this->uriGenerator->setRequest($request);
        return new Context($request, $route, $this->uriGenerator);
    }
public function create ( ServerRequestInterface $ request , Route $ route ) { $ this -> uriGenerator -> setRequest ( $ request ) ; return new Context ( $ request , $ route , $ this -> uriGenerator ) ; }
Creates a container context for provided request and route

@param ServerRequestInterface $request
@param Route                  $route

@return ControllerContextInterface
Creates a container context for provided request and route