HomePhabricator

Give ConduitAPIMethod->getMethodDescription() access to a real Viewer

Description

Give ConduitAPIMethod->getMethodDescription() access to a real Viewer

Summary:
Ref T9964. The new *.search and *.edit methods generate documentation which depends on the viewer.

For example, the *.search methods show a reference table of the keys for all your saved queries.

Give them a real viewer to work with.

During normal execution, just populate this viewer with the request's viewer, so $request->getViewer() and $this->getViewer() both work and mean the same thing.

Test Plan:

Screen Shot 2015-12-13 at 2.44.37 AM.png (229×539 px, 35 KB)

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9964

Differential Revision: https://secure.phabricator.com/D14761