From: Lucas Werkmeister Date: Thu, 14 Feb 2019 16:49:28 +0000 (+0100) Subject: Fix SlotDiffRenderer documentation X-Git-Tag: 1.34.0-rc.0~848^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/File:Contains_&_ampersand.jpg?a=commitdiff_plain;h=2303b79e1145dbec741e4b4adada0e42de95a81a;p=lhc%2Fweb%2Fwiklou.git Fix SlotDiffRenderer documentation I cannot find any trace of the getSlotDiffRendererClass method mentioned in the old comment – even patch set 1 of I2f8a9dbebd, which introduced the whole SlotDiffRenderer class, already had getSlotDiffRenderer and getSlotDiffRendererInternal instead of getSlotDiffRendererClass in ContentHandler. Change-Id: I56595cedea3f82a328df64200dd9285d8526e67a --- diff --git a/includes/diff/SlotDiffRenderer.php b/includes/diff/SlotDiffRenderer.php index b30607f755..969e0ba7a3 100644 --- a/includes/diff/SlotDiffRenderer.php +++ b/includes/diff/SlotDiffRenderer.php @@ -25,13 +25,13 @@ use Wikimedia\Assert\Assert; /** * Renders a diff for a single slot (that is, a diff between two content objects). * - * Callers should obtain this class by invoking ContentHandler::getSlotDiffRendererClass + * Callers should obtain instances of this class by invoking ContentHandler::getSlotDiffRenderer * on the content handler of the new content object (ie. the one shown on the right side * of the diff), or of the old one if the new one does not exist. * * The default implementation just does a text diff on the native text representation. * Content handler extensions can subclass this to provide a more appropriate diff method by - * overriding ContentHandler::getSlotDiffRendererClass. Other extensions that want to interfere + * overriding ContentHandler::getSlotDiffRendererInternal. Other extensions that want to interfere * with diff generation in some way can use the GetSlotDiffRenderer hook. * * @ingroup DifferenceEngine