src/Controllers/CommentingController.php
public function reply(HTTPRequest $request)
    {
        // Extract parent comment from reply and build this way
        if ($parentID = $request->param('ParentCommentID')) {
            /** @var Comment $comment */
            $comment = DataObject::get_by_id(Comment::class, $parentID, true);
            if ($comment) {
                return $this->ReplyForm($comment);
            }
        }
        return $this->httpError(404);
    }
public function reply(HTTPRequest $request)
    {
        // Extract parent comment from reply and build this way
        if ($parentID = $request->param('ParentCommentID')) {
            /** @var Comment $comment */
            $comment = DataObject::get_by_id(Comment::class, $parentID, true);
            if ($comment) {
                return $this->ReplyForm($comment);
            }
        }
        return $this->httpError(404);
    }
public function reply ( HTTPRequest $ request ) { // Extract parent comment from reply and build this way if ( $ parentID = $ request -> param ( 'ParentCommentID' ) ) { /** @var Comment $comment */ $ comment = DataObject :: get_by_id ( Comment :: class , $ parentID , true ) ; if ( $ comment ) { return $ this -> ReplyForm ( $ comment ) ; } } return $ this -> httpError ( 404 ) ; }
Request handler for reply form.

This method will disambiguate multiple reply forms in the same method

@param  HTTPRequest $request
@throws HTTPResponse_Exception
Request handler for reply form .