@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Formalize phid.external-loaders

Test Plan: /config/issue/

Reviewers: edward, codeblock, epriestley

Reviewed By: epriestley

CC: aran, Korvin

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

authored by

vrana and committed by
epriestley
3a93ecdc df60053e

+38
+3
src/__phutil_library_map__.php
··· 578 578 'ManiphestView' => 'applications/maniphest/view/ManiphestView.php', 579 579 'MetaMTAConstants' => 'applications/metamta/constants/MetaMTAConstants.php', 580 580 'MetaMTANotificationType' => 'applications/metamta/constants/MetaMTANotificationType.php', 581 + 'ObjectHandleLoader' => 'applications/phid/handle/ObjectHandleLoader.php', 581 582 'OwnersPackageReplyHandler' => 'applications/owners/OwnersPackageReplyHandler.php', 582 583 'PackageCreateMail' => 'applications/owners/mail/PackageCreateMail.php', 583 584 'PackageDeleteMail' => 'applications/owners/mail/PackageDeleteMail.php', ··· 1040 1041 'PhabricatorOwnersPath' => 'applications/owners/storage/PhabricatorOwnersPath.php', 1041 1042 'PhabricatorPHDConfigOptions' => 'applications/config/option/PhabricatorPHDConfigOptions.php', 1042 1043 'PhabricatorPHID' => 'applications/phid/storage/PhabricatorPHID.php', 1044 + 'PhabricatorPHIDConfigOptions' => 'applications/phid/config/PhabricatorPHIDConfigOptions.php', 1043 1045 'PhabricatorPHIDConstants' => 'applications/phid/PhabricatorPHIDConstants.php', 1044 1046 'PhabricatorPHIDController' => 'applications/phid/controller/PhabricatorPHIDController.php', 1045 1047 'PhabricatorPHIDLookupController' => 'applications/phid/controller/PhabricatorPHIDLookupController.php', ··· 2403 2405 'PhabricatorOwnersPackageTestCase' => 'PhabricatorTestCase', 2404 2406 'PhabricatorOwnersPath' => 'PhabricatorOwnersDAO', 2405 2407 'PhabricatorPHDConfigOptions' => 'PhabricatorApplicationConfigOptions', 2408 + 'PhabricatorPHIDConfigOptions' => 'PhabricatorApplicationConfigOptions', 2406 2409 'PhabricatorPHIDController' => 'PhabricatorController', 2407 2410 'PhabricatorPHIDLookupController' => 'PhabricatorPHIDController', 2408 2411 'PhabricatorPHPMailerConfigOptions' => 'PhabricatorApplicationConfigOptions',
+27
src/applications/phid/config/PhabricatorPHIDConfigOptions.php
··· 1 + <?php 2 + 3 + final class PhabricatorPHIDConfigOptions 4 + extends PhabricatorApplicationConfigOptions { 5 + 6 + public function getName() { 7 + return pht("PHID"); 8 + } 9 + 10 + public function getDescription() { 11 + return pht("Configure PHID generation and lookup."); 12 + } 13 + 14 + public function getOptions() { 15 + return array( 16 + $this->newOption( 17 + 'phid.external-loaders', 18 + 'wild', 19 + null) 20 + ->setDescription( 21 + pht( 22 + 'For each new 4-char PHID type, point to an external loader for '. 23 + 'that type.')), 24 + ); 25 + } 26 + 27 + }
+7
src/applications/phid/handle/ObjectHandleLoader.php
··· 1 + <?php 2 + 3 + abstract class ObjectHandleLoader { 4 + 5 + abstract public function loadHandles(array $phids); 6 + 7 + }
+1
src/applications/phid/handle/PhabricatorObjectHandleData.php
··· 689 689 690 690 if ($loader) { 691 691 $object = newv($loader, array()); 692 + assert_instances_of(array($type => $object), 'ObjectHandleLoader'); 692 693 $handles += $object->loadHandles($phids); 693 694 break; 694 695 }