src/Controller.php
public function register(
        ServerRequestInterface $request, ResponseInterface $response
    ) {
        $this->request = $request;
        $this->response = $response;
        return $this;
    }
public function register(
        ServerRequestInterface $request, ResponseInterface $response
    ) {
        $this->request = $request;
        $this->response = $response;
        return $this;
    }
public function register ( ServerRequestInterface $ request , ResponseInterface $ response ) { $ this -> request = $ request ; $ this -> response = $ response ; return $ this ; }
Registers the current HTTP request and response

@param ServerRequestInterface $request
@param ResponseInterface      $response

@return Controller|$this|self|ControllerInterface
Registers the current HTTP request and response