Merge "Restore Composer hook providing MediaWiki version"
[lhc/web/wiklou.git] / includes / api / ApiFormatYaml.php
index 9a8e3bc..3798f89 100644 (file)
@@ -26,6 +26,7 @@
 
 /**
  * API YAML output formatter
+ * @deprecated since 1.24
  * @ingroup API
  */
 class ApiFormatYaml extends ApiFormatJson {
@@ -34,11 +35,12 @@ class ApiFormatYaml extends ApiFormatJson {
                return 'application/yaml';
        }
 
-       public function getDescription() {
-               return 'Output data in YAML format' . ApiFormatBase::getDescription();
+       public function execute() {
+               $this->markDeprecated();
+               parent::execute();
        }
 
-       public function getVersion() {
-               return __CLASS__ . ': $Id$';
+       public function getDescription() {
+               return 'DEPRECATED! Output data in YAML format' . ApiFormatBase::getDescription();
        }
 }