Differential D19414 Diff 46449 src/applications/diffusion/document/DiffusionDocumentRenderingEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/document/DiffusionDocumentRenderingEngine.php
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | final class DiffusionDocumentRenderingEngine | ||||
} | } | ||||
protected function addApplicationCrumbs( | protected function addApplicationCrumbs( | ||||
PHUICrumbsView $crumbs, | PHUICrumbsView $crumbs, | ||||
PhabricatorDocumentRef $ref = null) { | PhabricatorDocumentRef $ref = null) { | ||||
return; | return; | ||||
} | } | ||||
protected function willRenderRef(PhabricatorDocumentRef $ref) { | protected function willStageRef(PhabricatorDocumentRef $ref) { | ||||
$drequest = $this->getDiffusionRequest(); | $drequest = $this->getDiffusionRequest(); | ||||
$blame_uri = (string)$drequest->generateURI( | $blame_uri = (string)$drequest->generateURI( | ||||
array( | array( | ||||
'action' => 'blame', | 'action' => 'blame', | ||||
'stable' => true, | 'stable' => true, | ||||
)); | )); | ||||
$ref | $ref->setBlameURI($blame_uri); | ||||
->setSymbolMetadata($this->getSymbolMetadata()) | } | ||||
->setBlameURI($blame_uri); | |||||
protected function willRenderRef(PhabricatorDocumentRef $ref) { | |||||
$drequest = $this->getDiffusionRequest(); | |||||
$ref->setSymbolMetadata($this->getSymbolMetadata()); | |||||
$coverage = $drequest->loadCoverage(); | $coverage = $drequest->loadCoverage(); | ||||
if (strlen($coverage)) { | if (strlen($coverage)) { | ||||
$ref->addCoverage($coverage); | $ref->addCoverage($coverage); | ||||
} | } | ||||
} | } | ||||
private function getSymbolMetadata() { | private function getSymbolMetadata() { | ||||
Show All 16 Lines |