From db3ef4021a5d4110d5bc5838a1a9b1b04ff133d2 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 16 Feb 2018 11:42:59 -0800 Subject: [PATCH] Freeze the "phriction.info" Conduit API method Summary: Ref T13077. Freeze "phriction.info" in favor of the more modern "phriction.document.search". Test Plan: Reviewed older method in web UI, saw frozen markers. Maniphest Tasks: T13077 Differential Revision: https://secure.phabricator.com/D19113 --- .../conduit/PhrictionInfoConduitAPIMethod.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/applications/phriction/conduit/PhrictionInfoConduitAPIMethod.php b/src/applications/phriction/conduit/PhrictionInfoConduitAPIMethod.php index 360b3e7b93..d6da3d6aee 100644 --- a/src/applications/phriction/conduit/PhrictionInfoConduitAPIMethod.php +++ b/src/applications/phriction/conduit/PhrictionInfoConduitAPIMethod.php @@ -10,6 +10,16 @@ final class PhrictionInfoConduitAPIMethod extends PhrictionConduitAPIMethod { return pht('Retrieve information about a Phriction document.'); } + public function getMethodStatus() { + return self::METHOD_STATUS_FROZEN; + } + + public function getMethodStatusDescription() { + return pht( + 'This method is frozen and will eventually be deprecated. New code '. + 'should use "phriction.document.search" instead.'); + } + protected function defineParamTypes() { return array( 'slug' => 'required string',