API: Add caution to docs for ApiBase::getCustomPrinter
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 3 Mar 2015 21:46:14 +0000 (16:46 -0500)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 3 Mar 2015 21:50:50 +0000 (21:50 +0000)
Change-Id: I37737cfd65fffa4f19ad35d3443e881acc4918db

includes/api/ApiBase.php

index be5a9c3..b03782f 100644 (file)
@@ -160,6 +160,9 @@ abstract class ApiBase extends ContextSource {
         * If the module may only be used with a certain format module,
         * it should override this method to return an instance of that formatter.
         * A value of null means the default format will be used.
+        * @note Do not use this just because you don't want to support non-json
+        * formats. This should be used only when there is a fundamental
+        * requirement for a specific format.
         * @return mixed Instance of a derived class of ApiFormatBase, or null
         */
        public function getCustomPrinter() {