mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-25 21:19:21 +01:00
Summary: Ref T4788. This moves everything except "merge" to the new code. Test Plan: - Edited relationships in Differential, Diffusion, and Pholio. - Uninstalled Pholio, made sure "Edit Mocks..." actions vanished. Reviewers: chad Reviewed By: chad Maniphest Tasks: T4788 Differential Revision: https://secure.phabricator.com/D16193
20 lines
437 B
PHP
20 lines
437 B
PHP
<?php
|
|
|
|
final class DifferentialRevisionRelationshipSource
|
|
extends PhabricatorObjectRelationshipSource {
|
|
|
|
public function isEnabledForObject($object) {
|
|
$viewer = $this->getViewer();
|
|
|
|
return PhabricatorApplication::isClassInstalledForViewer(
|
|
'PhabricatorDifferentialApplication',
|
|
$viewer);
|
|
}
|
|
|
|
public function getResultPHIDTypes() {
|
|
return array(
|
|
DifferentialRevisionPHIDType::TYPECONST,
|
|
);
|
|
}
|
|
|
|
}
|