X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatYaml.php;h=3798f89409f895089c4550bc57a68427087eb653;hb=a5b61579a3732121c65f344d3b3f6addf9f324ae;hp=700d4a5e9dc160370a20739acd789403c5d80e5f;hpb=88e01ff9d6783e2175d6af1124169fcfb087db39;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatYaml.php b/includes/api/ApiFormatYaml.php index 700d4a5e9d..3798f89409 100644 --- a/includes/api/ApiFormatYaml.php +++ b/includes/api/ApiFormatYaml.php @@ -26,6 +26,7 @@ /** * API YAML output formatter + * @deprecated since 1.24 * @ingroup API */ class ApiFormatYaml extends ApiFormatJson { @@ -34,7 +35,12 @@ class ApiFormatYaml extends ApiFormatJson { return 'application/yaml'; } + public function execute() { + $this->markDeprecated(); + parent::execute(); + } + public function getDescription() { - return 'Output data in YAML format' . ApiFormatBase::getDescription(); + return 'DEPRECATED! Output data in YAML format' . ApiFormatBase::getDescription(); } }