Allow Diviner to render quasi-documentation

Summary: Take a few more steps forward toward usability.

Test Plan: {F33040}

Reviewers: chad

Reviewed By: chad

CC: aran

Maniphest Tasks: T988

Differential Revision: https://secure.phabricator.com/D4991
This commit is contained in:
epriestley
2013-02-17 15:40:24 -08:00
parent a5fb482a00
commit dba42ec5c7
2 changed files with 165 additions and 11 deletions

View File

@@ -392,6 +392,10 @@ final class DivinerGenerateWorkflow extends DivinerWorkflow {
$atom_cache = $this->getAtomCache();
$atom = $atom_cache->getAtom($node_hash);
if (!$atom) {
throw new Exception("No such atom with node hash '{$node_hash}'!");
}
$ref = DivinerAtomRef::newFromDictionary($atom['ref']);
return $ref->toHash();
}