@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.

Move some files around

Summary: Move some `PhabricatorPolicyRule` implementations to a subdirectory of the parent application.

Test Plan: N/A

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

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

+12 -12
+4 -4
src/__phutil_library_map__.php
··· 1556 1556 'PhabricatorActionListView' => 'view/layout/PhabricatorActionListView.php', 1557 1557 'PhabricatorActionView' => 'view/layout/PhabricatorActionView.php', 1558 1558 'PhabricatorActivitySettingsPanel' => 'applications/settings/panel/PhabricatorActivitySettingsPanel.php', 1559 - 'PhabricatorAdministratorsPolicyRule' => 'applications/policy/rule/PhabricatorAdministratorsPolicyRule.php', 1559 + 'PhabricatorAdministratorsPolicyRule' => 'applications/people/policyrule/PhabricatorAdministratorsPolicyRule.php', 1560 1560 'PhabricatorAjaxRequestExceptionHandler' => 'aphront/handler/PhabricatorAjaxRequestExceptionHandler.php', 1561 1561 'PhabricatorAlmanacApplication' => 'applications/almanac/application/PhabricatorAlmanacApplication.php', 1562 1562 'PhabricatorAmazonAuthProvider' => 'applications/auth/provider/PhabricatorAmazonAuthProvider.php', ··· 2326 2326 'PhabricatorLegalpadApplication' => 'applications/legalpad/application/PhabricatorLegalpadApplication.php', 2327 2327 'PhabricatorLegalpadConfigOptions' => 'applications/legalpad/config/PhabricatorLegalpadConfigOptions.php', 2328 2328 'PhabricatorLegalpadDocumentPHIDType' => 'applications/legalpad/phid/PhabricatorLegalpadDocumentPHIDType.php', 2329 - 'PhabricatorLegalpadSignaturePolicyRule' => 'applications/policy/rule/PhabricatorLegalpadSignaturePolicyRule.php', 2329 + 'PhabricatorLegalpadSignaturePolicyRule' => 'applications/legalpad/policyrule/PhabricatorLegalpadSignaturePolicyRule.php', 2330 2330 'PhabricatorLibraryTestCase' => '__tests__/PhabricatorLibraryTestCase.php', 2331 2331 'PhabricatorLipsumArtist' => 'applications/lipsum/image/PhabricatorLipsumArtist.php', 2332 2332 'PhabricatorLipsumGenerateWorkflow' => 'applications/lipsum/management/PhabricatorLipsumGenerateWorkflow.php', ··· 2787 2787 'PhabricatorProjectViewController' => 'applications/project/controller/PhabricatorProjectViewController.php', 2788 2788 'PhabricatorProjectWatchController' => 'applications/project/controller/PhabricatorProjectWatchController.php', 2789 2789 'PhabricatorProjectsEditField' => 'applications/transactions/editfield/PhabricatorProjectsEditField.php', 2790 - 'PhabricatorProjectsPolicyRule' => 'applications/policy/rule/PhabricatorProjectsPolicyRule.php', 2790 + 'PhabricatorProjectsPolicyRule' => 'applications/project/policyrule/PhabricatorProjectsPolicyRule.php', 2791 2791 'PhabricatorProtocolAdapter' => 'infrastructure/daemon/bot/adapter/PhabricatorProtocolAdapter.php', 2792 2792 'PhabricatorPygmentSetupCheck' => 'applications/config/check/PhabricatorPygmentSetupCheck.php', 2793 2793 'PhabricatorQuery' => 'infrastructure/query/PhabricatorQuery.php', ··· 3197 3197 'PhabricatorUserTitleField' => 'applications/people/customfield/PhabricatorUserTitleField.php', 3198 3198 'PhabricatorUserTransaction' => 'applications/people/storage/PhabricatorUserTransaction.php', 3199 3199 'PhabricatorUsersEditField' => 'applications/transactions/editfield/PhabricatorUsersEditField.php', 3200 - 'PhabricatorUsersPolicyRule' => 'applications/policy/rule/PhabricatorUsersPolicyRule.php', 3200 + 'PhabricatorUsersPolicyRule' => 'applications/people/policyrule/PhabricatorUsersPolicyRule.php', 3201 3201 'PhabricatorUsersSearchField' => 'applications/people/searchfield/PhabricatorUsersSearchField.php', 3202 3202 'PhabricatorVCSResponse' => 'applications/repository/response/PhabricatorVCSResponse.php', 3203 3203 'PhabricatorVeryWowEnglishTranslation' => 'infrastructure/internationalization/translation/PhabricatorVeryWowEnglishTranslation.php',
src/applications/policy/rule/PhabricatorAdministratorsPolicyRule.php src/applications/people/policyrule/PhabricatorAdministratorsPolicyRule.php
-1
src/applications/policy/rule/PhabricatorLegalpadSignaturePolicyRule.php src/applications/legalpad/policyrule/PhabricatorLegalpadSignaturePolicyRule.php
··· 66 66 ->setViewer($viewer) 67 67 ->withPHIDs($value) 68 68 ->execute(); 69 - 70 69 return mpull($handles, 'getFullName', 'getPHID'); 71 70 } 72 71
+6 -6
src/applications/policy/rule/PhabricatorLunarPhasePolicyRule.php
··· 2 2 3 3 final class PhabricatorLunarPhasePolicyRule extends PhabricatorPolicyRule { 4 4 5 - const PHASE_FULL = 'full'; 6 - const PHASE_NEW = 'new'; 5 + const PHASE_FULL = 'full'; 6 + const PHASE_NEW = 'new'; 7 7 const PHASE_WAXING = 'waxing'; 8 8 const PHASE_WANING = 'waning'; 9 9 ··· 27 27 return $moon->isWaxing(); 28 28 case 'waning': 29 29 return $moon->isWaning(); 30 + default: 31 + return false; 30 32 } 31 - 32 - return false; 33 33 } 34 34 35 35 public function getValueControlType() { ··· 39 39 public function getValueControlTemplate() { 40 40 return array( 41 41 'options' => array( 42 - self::PHASE_FULL => pht('is full'), 43 - self::PHASE_NEW => pht('is new'), 42 + self::PHASE_FULL => pht('is full'), 43 + self::PHASE_NEW => pht('is new'), 44 44 self::PHASE_WAXING => pht('is waxing'), 45 45 self::PHASE_WANING => pht('is waning'), 46 46 ),
+2 -1
src/applications/policy/rule/PhabricatorProjectsPolicyRule.php src/applications/project/policyrule/PhabricatorProjectsPolicyRule.php
··· 1 1 <?php 2 2 3 - final class PhabricatorProjectsPolicyRule extends PhabricatorPolicyRule { 3 + final class PhabricatorProjectsPolicyRule 4 + extends PhabricatorPolicyRule { 4 5 5 6 private $memberships = array(); 6 7
src/applications/policy/rule/PhabricatorUsersPolicyRule.php src/applications/people/policyrule/PhabricatorUsersPolicyRule.php