1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 22:40:55 +01:00

Rename policy capabilities

Summary: Ref T5655. Rename `PhabricatorPolicyCapability` subclasses for consistency.

Test Plan: Browsed a few applications, nothing seemed broken.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin, hach-que

Maniphest Tasks: T5655

Differential Revision: https://secure.phabricator.com/D10037
This commit is contained in:
Joshua Spence 2014-07-25 08:20:39 +10:00
parent 3927e66959
commit c34de83619
110 changed files with 258 additions and 301 deletions

View file

@ -335,7 +335,6 @@ phutil_register_library_map(array(
'DifferentialAuthorField' => 'applications/differential/customfield/DifferentialAuthorField.php', 'DifferentialAuthorField' => 'applications/differential/customfield/DifferentialAuthorField.php',
'DifferentialBlameRevisionField' => 'applications/differential/customfield/DifferentialBlameRevisionField.php', 'DifferentialBlameRevisionField' => 'applications/differential/customfield/DifferentialBlameRevisionField.php',
'DifferentialBranchField' => 'applications/differential/customfield/DifferentialBranchField.php', 'DifferentialBranchField' => 'applications/differential/customfield/DifferentialBranchField.php',
'DifferentialCapabilityDefaultView' => 'applications/differential/capability/DifferentialCapabilityDefaultView.php',
'DifferentialChangeType' => 'applications/differential/constants/DifferentialChangeType.php', 'DifferentialChangeType' => 'applications/differential/constants/DifferentialChangeType.php',
'DifferentialChangesSinceLastUpdateField' => 'applications/differential/customfield/DifferentialChangesSinceLastUpdateField.php', 'DifferentialChangesSinceLastUpdateField' => 'applications/differential/customfield/DifferentialChangesSinceLastUpdateField.php',
'DifferentialChangeset' => 'applications/differential/storage/DifferentialChangeset.php', 'DifferentialChangeset' => 'applications/differential/storage/DifferentialChangeset.php',
@ -370,6 +369,7 @@ phutil_register_library_map(array(
'DifferentialCustomFieldStorage' => 'applications/differential/storage/DifferentialCustomFieldStorage.php', 'DifferentialCustomFieldStorage' => 'applications/differential/storage/DifferentialCustomFieldStorage.php',
'DifferentialCustomFieldStringIndex' => 'applications/differential/storage/DifferentialCustomFieldStringIndex.php', 'DifferentialCustomFieldStringIndex' => 'applications/differential/storage/DifferentialCustomFieldStringIndex.php',
'DifferentialDAO' => 'applications/differential/storage/DifferentialDAO.php', 'DifferentialDAO' => 'applications/differential/storage/DifferentialDAO.php',
'DifferentialDefaultViewCapability' => 'applications/differential/capability/DifferentialDefaultViewCapability.php',
'DifferentialDependenciesField' => 'applications/differential/customfield/DifferentialDependenciesField.php', 'DifferentialDependenciesField' => 'applications/differential/customfield/DifferentialDependenciesField.php',
'DifferentialDependsOnField' => 'applications/differential/customfield/DifferentialDependsOnField.php', 'DifferentialDependsOnField' => 'applications/differential/customfield/DifferentialDependsOnField.php',
'DifferentialDiff' => 'applications/differential/storage/DifferentialDiff.php', 'DifferentialDiff' => 'applications/differential/storage/DifferentialDiff.php',
@ -475,11 +475,6 @@ phutil_register_library_map(array(
'DiffusionBrowseResultSet' => 'applications/diffusion/data/DiffusionBrowseResultSet.php', 'DiffusionBrowseResultSet' => 'applications/diffusion/data/DiffusionBrowseResultSet.php',
'DiffusionBrowseSearchController' => 'applications/diffusion/controller/DiffusionBrowseSearchController.php', 'DiffusionBrowseSearchController' => 'applications/diffusion/controller/DiffusionBrowseSearchController.php',
'DiffusionBrowseTableView' => 'applications/diffusion/view/DiffusionBrowseTableView.php', 'DiffusionBrowseTableView' => 'applications/diffusion/view/DiffusionBrowseTableView.php',
'DiffusionCapabilityCreateRepositories' => 'applications/diffusion/capability/DiffusionCapabilityCreateRepositories.php',
'DiffusionCapabilityDefaultEdit' => 'applications/diffusion/capability/DiffusionCapabilityDefaultEdit.php',
'DiffusionCapabilityDefaultPush' => 'applications/diffusion/capability/DiffusionCapabilityDefaultPush.php',
'DiffusionCapabilityDefaultView' => 'applications/diffusion/capability/DiffusionCapabilityDefaultView.php',
'DiffusionCapabilityPush' => 'applications/diffusion/capability/DiffusionCapabilityPush.php',
'DiffusionChangeController' => 'applications/diffusion/controller/DiffusionChangeController.php', 'DiffusionChangeController' => 'applications/diffusion/controller/DiffusionChangeController.php',
'DiffusionCommentListView' => 'applications/diffusion/view/DiffusionCommentListView.php', 'DiffusionCommentListView' => 'applications/diffusion/view/DiffusionCommentListView.php',
'DiffusionCommentView' => 'applications/diffusion/view/DiffusionCommentView.php', 'DiffusionCommentView' => 'applications/diffusion/view/DiffusionCommentView.php',
@ -496,6 +491,10 @@ phutil_register_library_map(array(
'DiffusionCommitRemarkupRule' => 'applications/diffusion/remarkup/DiffusionCommitRemarkupRule.php', 'DiffusionCommitRemarkupRule' => 'applications/diffusion/remarkup/DiffusionCommitRemarkupRule.php',
'DiffusionCommitTagsController' => 'applications/diffusion/controller/DiffusionCommitTagsController.php', 'DiffusionCommitTagsController' => 'applications/diffusion/controller/DiffusionCommitTagsController.php',
'DiffusionController' => 'applications/diffusion/controller/DiffusionController.php', 'DiffusionController' => 'applications/diffusion/controller/DiffusionController.php',
'DiffusionCreateRepositoriesCapability' => 'applications/diffusion/capability/DiffusionCreateRepositoriesCapability.php',
'DiffusionDefaultEditCapability' => 'applications/diffusion/capability/DiffusionDefaultEditCapability.php',
'DiffusionDefaultPushCapability' => 'applications/diffusion/capability/DiffusionDefaultPushCapability.php',
'DiffusionDefaultViewCapability' => 'applications/diffusion/capability/DiffusionDefaultViewCapability.php',
'DiffusionDiffController' => 'applications/diffusion/controller/DiffusionDiffController.php', 'DiffusionDiffController' => 'applications/diffusion/controller/DiffusionDiffController.php',
'DiffusionDoorkeeperCommitFeedStoryPublisher' => 'applications/diffusion/doorkeeper/DiffusionDoorkeeperCommitFeedStoryPublisher.php', 'DiffusionDoorkeeperCommitFeedStoryPublisher' => 'applications/diffusion/doorkeeper/DiffusionDoorkeeperCommitFeedStoryPublisher.php',
'DiffusionEmptyResultView' => 'applications/diffusion/view/DiffusionEmptyResultView.php', 'DiffusionEmptyResultView' => 'applications/diffusion/view/DiffusionEmptyResultView.php',
@ -541,6 +540,7 @@ phutil_register_library_map(array(
'DiffusionPathQueryTestCase' => 'applications/diffusion/query/pathid/__tests__/DiffusionPathQueryTestCase.php', 'DiffusionPathQueryTestCase' => 'applications/diffusion/query/pathid/__tests__/DiffusionPathQueryTestCase.php',
'DiffusionPathTreeController' => 'applications/diffusion/controller/DiffusionPathTreeController.php', 'DiffusionPathTreeController' => 'applications/diffusion/controller/DiffusionPathTreeController.php',
'DiffusionPathValidateController' => 'applications/diffusion/controller/DiffusionPathValidateController.php', 'DiffusionPathValidateController' => 'applications/diffusion/controller/DiffusionPathValidateController.php',
'DiffusionPushCapability' => 'applications/diffusion/capability/DiffusionPushCapability.php',
'DiffusionPushEventViewController' => 'applications/diffusion/controller/DiffusionPushEventViewController.php', 'DiffusionPushEventViewController' => 'applications/diffusion/controller/DiffusionPushEventViewController.php',
'DiffusionPushLogController' => 'applications/diffusion/controller/DiffusionPushLogController.php', 'DiffusionPushLogController' => 'applications/diffusion/controller/DiffusionPushLogController.php',
'DiffusionPushLogListController' => 'applications/diffusion/controller/DiffusionPushLogListController.php', 'DiffusionPushLogListController' => 'applications/diffusion/controller/DiffusionPushLogListController.php',
@ -670,14 +670,14 @@ phutil_register_library_map(array(
'DrydockBlueprintTransaction' => 'applications/drydock/storage/DrydockBlueprintTransaction.php', 'DrydockBlueprintTransaction' => 'applications/drydock/storage/DrydockBlueprintTransaction.php',
'DrydockBlueprintTransactionQuery' => 'applications/drydock/query/DrydockBlueprintTransactionQuery.php', 'DrydockBlueprintTransactionQuery' => 'applications/drydock/query/DrydockBlueprintTransactionQuery.php',
'DrydockBlueprintViewController' => 'applications/drydock/controller/DrydockBlueprintViewController.php', 'DrydockBlueprintViewController' => 'applications/drydock/controller/DrydockBlueprintViewController.php',
'DrydockCapabilityCreateBlueprints' => 'applications/drydock/capability/DrydockCapabilityCreateBlueprints.php',
'DrydockCapabilityDefaultEdit' => 'applications/drydock/capability/DrydockCapabilityDefaultEdit.php',
'DrydockCapabilityDefaultView' => 'applications/drydock/capability/DrydockCapabilityDefaultView.php',
'DrydockCommandInterface' => 'applications/drydock/interface/command/DrydockCommandInterface.php', 'DrydockCommandInterface' => 'applications/drydock/interface/command/DrydockCommandInterface.php',
'DrydockConsoleController' => 'applications/drydock/controller/DrydockConsoleController.php', 'DrydockConsoleController' => 'applications/drydock/controller/DrydockConsoleController.php',
'DrydockConstants' => 'applications/drydock/constants/DrydockConstants.php', 'DrydockConstants' => 'applications/drydock/constants/DrydockConstants.php',
'DrydockController' => 'applications/drydock/controller/DrydockController.php', 'DrydockController' => 'applications/drydock/controller/DrydockController.php',
'DrydockCreateBlueprintsCapability' => 'applications/drydock/capability/DrydockCreateBlueprintsCapability.php',
'DrydockDAO' => 'applications/drydock/storage/DrydockDAO.php', 'DrydockDAO' => 'applications/drydock/storage/DrydockDAO.php',
'DrydockDefaultEditCapability' => 'applications/drydock/capability/DrydockDefaultEditCapability.php',
'DrydockDefaultViewCapability' => 'applications/drydock/capability/DrydockDefaultViewCapability.php',
'DrydockFilesystemInterface' => 'applications/drydock/interface/filesystem/DrydockFilesystemInterface.php', 'DrydockFilesystemInterface' => 'applications/drydock/interface/filesystem/DrydockFilesystemInterface.php',
'DrydockInterface' => 'applications/drydock/interface/DrydockInterface.php', 'DrydockInterface' => 'applications/drydock/interface/DrydockInterface.php',
'DrydockLease' => 'applications/drydock/storage/DrydockLease.php', 'DrydockLease' => 'applications/drydock/storage/DrydockLease.php',
@ -778,12 +778,12 @@ phutil_register_library_map(array(
'HarbormasterBuildableTransactionEditor' => 'applications/harbormaster/editor/HarbormasterBuildableTransactionEditor.php', 'HarbormasterBuildableTransactionEditor' => 'applications/harbormaster/editor/HarbormasterBuildableTransactionEditor.php',
'HarbormasterBuildableTransactionQuery' => 'applications/harbormaster/query/HarbormasterBuildableTransactionQuery.php', 'HarbormasterBuildableTransactionQuery' => 'applications/harbormaster/query/HarbormasterBuildableTransactionQuery.php',
'HarbormasterBuildableViewController' => 'applications/harbormaster/controller/HarbormasterBuildableViewController.php', 'HarbormasterBuildableViewController' => 'applications/harbormaster/controller/HarbormasterBuildableViewController.php',
'HarbormasterCapabilityManagePlans' => 'applications/harbormaster/capability/HarbormasterCapabilityManagePlans.php',
'HarbormasterCommandBuildStepImplementation' => 'applications/harbormaster/step/HarbormasterCommandBuildStepImplementation.php', 'HarbormasterCommandBuildStepImplementation' => 'applications/harbormaster/step/HarbormasterCommandBuildStepImplementation.php',
'HarbormasterController' => 'applications/harbormaster/controller/HarbormasterController.php', 'HarbormasterController' => 'applications/harbormaster/controller/HarbormasterController.php',
'HarbormasterDAO' => 'applications/harbormaster/storage/HarbormasterDAO.php', 'HarbormasterDAO' => 'applications/harbormaster/storage/HarbormasterDAO.php',
'HarbormasterHTTPRequestBuildStepImplementation' => 'applications/harbormaster/step/HarbormasterHTTPRequestBuildStepImplementation.php', 'HarbormasterHTTPRequestBuildStepImplementation' => 'applications/harbormaster/step/HarbormasterHTTPRequestBuildStepImplementation.php',
'HarbormasterLeaseHostBuildStepImplementation' => 'applications/harbormaster/step/HarbormasterLeaseHostBuildStepImplementation.php', 'HarbormasterLeaseHostBuildStepImplementation' => 'applications/harbormaster/step/HarbormasterLeaseHostBuildStepImplementation.php',
'HarbormasterManagePlansCapability' => 'applications/harbormaster/capability/HarbormasterManagePlansCapability.php',
'HarbormasterManagementBuildWorkflow' => 'applications/harbormaster/management/HarbormasterManagementBuildWorkflow.php', 'HarbormasterManagementBuildWorkflow' => 'applications/harbormaster/management/HarbormasterManagementBuildWorkflow.php',
'HarbormasterManagementUpdateWorkflow' => 'applications/harbormaster/management/HarbormasterManagementUpdateWorkflow.php', 'HarbormasterManagementUpdateWorkflow' => 'applications/harbormaster/management/HarbormasterManagementUpdateWorkflow.php',
'HarbormasterManagementWorkflow' => 'applications/harbormaster/management/HarbormasterManagementWorkflow.php', 'HarbormasterManagementWorkflow' => 'applications/harbormaster/management/HarbormasterManagementWorkflow.php',
@ -811,7 +811,6 @@ phutil_register_library_map(array(
'HeraldAction' => 'applications/herald/storage/HeraldAction.php', 'HeraldAction' => 'applications/herald/storage/HeraldAction.php',
'HeraldAdapter' => 'applications/herald/adapter/HeraldAdapter.php', 'HeraldAdapter' => 'applications/herald/adapter/HeraldAdapter.php',
'HeraldApplyTranscript' => 'applications/herald/storage/transcript/HeraldApplyTranscript.php', 'HeraldApplyTranscript' => 'applications/herald/storage/transcript/HeraldApplyTranscript.php',
'HeraldCapabilityManageGlobalRules' => 'applications/herald/capability/HeraldCapabilityManageGlobalRules.php',
'HeraldCommitAdapter' => 'applications/herald/adapter/HeraldCommitAdapter.php', 'HeraldCommitAdapter' => 'applications/herald/adapter/HeraldCommitAdapter.php',
'HeraldCondition' => 'applications/herald/storage/HeraldCondition.php', 'HeraldCondition' => 'applications/herald/storage/HeraldCondition.php',
'HeraldConditionTranscript' => 'applications/herald/storage/transcript/HeraldConditionTranscript.php', 'HeraldConditionTranscript' => 'applications/herald/storage/transcript/HeraldConditionTranscript.php',
@ -826,6 +825,7 @@ phutil_register_library_map(array(
'HeraldInvalidActionException' => 'applications/herald/engine/exception/HeraldInvalidActionException.php', 'HeraldInvalidActionException' => 'applications/herald/engine/exception/HeraldInvalidActionException.php',
'HeraldInvalidConditionException' => 'applications/herald/engine/exception/HeraldInvalidConditionException.php', 'HeraldInvalidConditionException' => 'applications/herald/engine/exception/HeraldInvalidConditionException.php',
'HeraldInvalidFieldException' => 'applications/herald/engine/exception/HeraldInvalidFieldException.php', 'HeraldInvalidFieldException' => 'applications/herald/engine/exception/HeraldInvalidFieldException.php',
'HeraldManageGlobalRulesCapability' => 'applications/herald/capability/HeraldManageGlobalRulesCapability.php',
'HeraldManiphestTaskAdapter' => 'applications/herald/adapter/HeraldManiphestTaskAdapter.php', 'HeraldManiphestTaskAdapter' => 'applications/herald/adapter/HeraldManiphestTaskAdapter.php',
'HeraldNewController' => 'applications/herald/controller/HeraldNewController.php', 'HeraldNewController' => 'applications/herald/controller/HeraldNewController.php',
'HeraldObjectTranscript' => 'applications/herald/storage/transcript/HeraldObjectTranscript.php', 'HeraldObjectTranscript' => 'applications/herald/storage/transcript/HeraldObjectTranscript.php',
@ -865,12 +865,12 @@ phutil_register_library_map(array(
'JavelinUIExample' => 'applications/uiexample/examples/JavelinUIExample.php', 'JavelinUIExample' => 'applications/uiexample/examples/JavelinUIExample.php',
'JavelinViewExample' => 'applications/uiexample/examples/JavelinViewExample.php', 'JavelinViewExample' => 'applications/uiexample/examples/JavelinViewExample.php',
'JavelinViewExampleServerView' => 'applications/uiexample/examples/JavelinViewExampleServerView.php', 'JavelinViewExampleServerView' => 'applications/uiexample/examples/JavelinViewExampleServerView.php',
'LegalpadCapabilityCreateDocuments' => 'applications/legalpad/capability/LegalpadCapabilityCreateDocuments.php',
'LegalpadCapabilityDefaultEdit' => 'applications/legalpad/capability/LegalpadCapabilityDefaultEdit.php',
'LegalpadCapabilityDefaultView' => 'applications/legalpad/capability/LegalpadCapabilityDefaultView.php',
'LegalpadConstants' => 'applications/legalpad/constants/LegalpadConstants.php', 'LegalpadConstants' => 'applications/legalpad/constants/LegalpadConstants.php',
'LegalpadController' => 'applications/legalpad/controller/LegalpadController.php', 'LegalpadController' => 'applications/legalpad/controller/LegalpadController.php',
'LegalpadCreateDocumentsCapability' => 'applications/legalpad/capability/LegalpadCreateDocumentsCapability.php',
'LegalpadDAO' => 'applications/legalpad/storage/LegalpadDAO.php', 'LegalpadDAO' => 'applications/legalpad/storage/LegalpadDAO.php',
'LegalpadDefaultEditCapability' => 'applications/legalpad/capability/LegalpadDefaultEditCapability.php',
'LegalpadDefaultViewCapability' => 'applications/legalpad/capability/LegalpadDefaultViewCapability.php',
'LegalpadDocument' => 'applications/legalpad/storage/LegalpadDocument.php', 'LegalpadDocument' => 'applications/legalpad/storage/LegalpadDocument.php',
'LegalpadDocumentBody' => 'applications/legalpad/storage/LegalpadDocumentBody.php', 'LegalpadDocumentBody' => 'applications/legalpad/storage/LegalpadDocumentBody.php',
'LegalpadDocumentCommentController' => 'applications/legalpad/controller/LegalpadDocumentCommentController.php', 'LegalpadDocumentCommentController' => 'applications/legalpad/controller/LegalpadDocumentCommentController.php',
@ -911,14 +911,7 @@ phutil_register_library_map(array(
'LiskRawMigrationIterator' => 'infrastructure/storage/lisk/LiskRawMigrationIterator.php', 'LiskRawMigrationIterator' => 'infrastructure/storage/lisk/LiskRawMigrationIterator.php',
'ManiphestActionMenuEventListener' => 'applications/maniphest/event/ManiphestActionMenuEventListener.php', 'ManiphestActionMenuEventListener' => 'applications/maniphest/event/ManiphestActionMenuEventListener.php',
'ManiphestBatchEditController' => 'applications/maniphest/controller/ManiphestBatchEditController.php', 'ManiphestBatchEditController' => 'applications/maniphest/controller/ManiphestBatchEditController.php',
'ManiphestCapabilityBulkEdit' => 'applications/maniphest/capability/ManiphestCapabilityBulkEdit.php', 'ManiphestBulkEditCapability' => 'applications/maniphest/capability/ManiphestBulkEditCapability.php',
'ManiphestCapabilityDefaultEdit' => 'applications/maniphest/capability/ManiphestCapabilityDefaultEdit.php',
'ManiphestCapabilityDefaultView' => 'applications/maniphest/capability/ManiphestCapabilityDefaultView.php',
'ManiphestCapabilityEditAssign' => 'applications/maniphest/capability/ManiphestCapabilityEditAssign.php',
'ManiphestCapabilityEditPolicies' => 'applications/maniphest/capability/ManiphestCapabilityEditPolicies.php',
'ManiphestCapabilityEditPriority' => 'applications/maniphest/capability/ManiphestCapabilityEditPriority.php',
'ManiphestCapabilityEditProjects' => 'applications/maniphest/capability/ManiphestCapabilityEditProjects.php',
'ManiphestCapabilityEditStatus' => 'applications/maniphest/capability/ManiphestCapabilityEditStatus.php',
'ManiphestConfiguredCustomField' => 'applications/maniphest/field/ManiphestConfiguredCustomField.php', 'ManiphestConfiguredCustomField' => 'applications/maniphest/field/ManiphestConfiguredCustomField.php',
'ManiphestConstants' => 'applications/maniphest/constants/ManiphestConstants.php', 'ManiphestConstants' => 'applications/maniphest/constants/ManiphestConstants.php',
'ManiphestController' => 'applications/maniphest/controller/ManiphestController.php', 'ManiphestController' => 'applications/maniphest/controller/ManiphestController.php',
@ -930,6 +923,13 @@ phutil_register_library_map(array(
'ManiphestCustomFieldStorage' => 'applications/maniphest/storage/ManiphestCustomFieldStorage.php', 'ManiphestCustomFieldStorage' => 'applications/maniphest/storage/ManiphestCustomFieldStorage.php',
'ManiphestCustomFieldStringIndex' => 'applications/maniphest/storage/ManiphestCustomFieldStringIndex.php', 'ManiphestCustomFieldStringIndex' => 'applications/maniphest/storage/ManiphestCustomFieldStringIndex.php',
'ManiphestDAO' => 'applications/maniphest/storage/ManiphestDAO.php', 'ManiphestDAO' => 'applications/maniphest/storage/ManiphestDAO.php',
'ManiphestDefaultEditCapability' => 'applications/maniphest/capability/ManiphestDefaultEditCapability.php',
'ManiphestDefaultViewCapability' => 'applications/maniphest/capability/ManiphestDefaultViewCapability.php',
'ManiphestEditAssignCapability' => 'applications/maniphest/capability/ManiphestEditAssignCapability.php',
'ManiphestEditPoliciesCapability' => 'applications/maniphest/capability/ManiphestEditPoliciesCapability.php',
'ManiphestEditPriorityCapability' => 'applications/maniphest/capability/ManiphestEditPriorityCapability.php',
'ManiphestEditProjectsCapability' => 'applications/maniphest/capability/ManiphestEditProjectsCapability.php',
'ManiphestEditStatusCapability' => 'applications/maniphest/capability/ManiphestEditStatusCapability.php',
'ManiphestExcelDefaultFormat' => 'applications/maniphest/export/ManiphestExcelDefaultFormat.php', 'ManiphestExcelDefaultFormat' => 'applications/maniphest/export/ManiphestExcelDefaultFormat.php',
'ManiphestExcelFormat' => 'applications/maniphest/export/ManiphestExcelFormat.php', 'ManiphestExcelFormat' => 'applications/maniphest/export/ManiphestExcelFormat.php',
'ManiphestExportController' => 'applications/maniphest/controller/ManiphestExportController.php', 'ManiphestExportController' => 'applications/maniphest/controller/ManiphestExportController.php',
@ -974,9 +974,6 @@ phutil_register_library_map(array(
'MetaMTAMailSentGarbageCollector' => 'applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php', 'MetaMTAMailSentGarbageCollector' => 'applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php',
'MetaMTANotificationType' => 'applications/metamta/constants/MetaMTANotificationType.php', 'MetaMTANotificationType' => 'applications/metamta/constants/MetaMTANotificationType.php',
'MetaMTAReceivedMailStatus' => 'applications/metamta/constants/MetaMTAReceivedMailStatus.php', 'MetaMTAReceivedMailStatus' => 'applications/metamta/constants/MetaMTAReceivedMailStatus.php',
'NuanceCapabilitySourceDefaultEdit' => 'applications/nuance/capability/NuanceCapabilitySourceDefaultEdit.php',
'NuanceCapabilitySourceDefaultView' => 'applications/nuance/capability/NuanceCapabilitySourceDefaultView.php',
'NuanceCapabilitySourceManage' => 'applications/nuance/capability/NuanceCapabilitySourceManage.php',
'NuanceConstants' => 'applications/nuance/constants/NuanceConstants.php', 'NuanceConstants' => 'applications/nuance/constants/NuanceConstants.php',
'NuanceController' => 'applications/nuance/controller/NuanceController.php', 'NuanceController' => 'applications/nuance/controller/NuanceController.php',
'NuanceDAO' => 'applications/nuance/storage/NuanceDAO.php', 'NuanceDAO' => 'applications/nuance/storage/NuanceDAO.php',
@ -1012,9 +1009,12 @@ phutil_register_library_map(array(
'NuanceRequestorTransactionQuery' => 'applications/nuance/query/NuanceRequestorTransactionQuery.php', 'NuanceRequestorTransactionQuery' => 'applications/nuance/query/NuanceRequestorTransactionQuery.php',
'NuanceRequestorViewController' => 'applications/nuance/controller/NuanceRequestorViewController.php', 'NuanceRequestorViewController' => 'applications/nuance/controller/NuanceRequestorViewController.php',
'NuanceSource' => 'applications/nuance/storage/NuanceSource.php', 'NuanceSource' => 'applications/nuance/storage/NuanceSource.php',
'NuanceSourceDefaultEditCapability' => 'applications/nuance/capability/NuanceSourceDefaultEditCapability.php',
'NuanceSourceDefaultViewCapability' => 'applications/nuance/capability/NuanceSourceDefaultViewCapability.php',
'NuanceSourceDefinition' => 'applications/nuance/source/NuanceSourceDefinition.php', 'NuanceSourceDefinition' => 'applications/nuance/source/NuanceSourceDefinition.php',
'NuanceSourceEditController' => 'applications/nuance/controller/NuanceSourceEditController.php', 'NuanceSourceEditController' => 'applications/nuance/controller/NuanceSourceEditController.php',
'NuanceSourceEditor' => 'applications/nuance/editor/NuanceSourceEditor.php', 'NuanceSourceEditor' => 'applications/nuance/editor/NuanceSourceEditor.php',
'NuanceSourceManageCapability' => 'applications/nuance/capability/NuanceSourceManageCapability.php',
'NuanceSourcePHIDType' => 'applications/nuance/phid/NuanceSourcePHIDType.php', 'NuanceSourcePHIDType' => 'applications/nuance/phid/NuanceSourcePHIDType.php',
'NuanceSourceQuery' => 'applications/nuance/query/NuanceSourceQuery.php', 'NuanceSourceQuery' => 'applications/nuance/query/NuanceSourceQuery.php',
'NuanceSourceTransaction' => 'applications/nuance/storage/NuanceSourceTransaction.php', 'NuanceSourceTransaction' => 'applications/nuance/storage/NuanceSourceTransaction.php',
@ -1112,12 +1112,12 @@ phutil_register_library_map(array(
'PassphraseRemarkupRule' => 'applications/passphrase/remarkup/PassphraseRemarkupRule.php', 'PassphraseRemarkupRule' => 'applications/passphrase/remarkup/PassphraseRemarkupRule.php',
'PassphraseSSHKey' => 'applications/passphrase/keys/PassphraseSSHKey.php', 'PassphraseSSHKey' => 'applications/passphrase/keys/PassphraseSSHKey.php',
'PassphraseSecret' => 'applications/passphrase/storage/PassphraseSecret.php', 'PassphraseSecret' => 'applications/passphrase/storage/PassphraseSecret.php',
'PasteCapabilityDefaultView' => 'applications/paste/capability/PasteCapabilityDefaultView.php',
'PasteCreateMailReceiver' => 'applications/paste/mail/PasteCreateMailReceiver.php', 'PasteCreateMailReceiver' => 'applications/paste/mail/PasteCreateMailReceiver.php',
'PasteDefaultViewCapability' => 'applications/paste/capability/PasteDefaultViewCapability.php',
'PasteEmbedView' => 'applications/paste/view/PasteEmbedView.php', 'PasteEmbedView' => 'applications/paste/view/PasteEmbedView.php',
'PasteMockMailReceiver' => 'applications/paste/mail/PasteMockMailReceiver.php', 'PasteMockMailReceiver' => 'applications/paste/mail/PasteMockMailReceiver.php',
'PasteReplyHandler' => 'applications/paste/mail/PasteReplyHandler.php', 'PasteReplyHandler' => 'applications/paste/mail/PasteReplyHandler.php',
'PeopleCapabilityBrowseUserDirectory' => 'applications/people/capability/PeopleCapabilityBrowseUserDirectory.php', 'PeopleBrowseUserDirectoryCapability' => 'applications/people/capability/PeopleBrowseUserDirectoryCapability.php',
'PeopleUserLogGarbageCollector' => 'applications/people/garbagecollector/PeopleUserLogGarbageCollector.php', 'PeopleUserLogGarbageCollector' => 'applications/people/garbagecollector/PeopleUserLogGarbageCollector.php',
'Phabricator404Controller' => 'applications/base/controller/Phabricator404Controller.php', 'Phabricator404Controller' => 'applications/base/controller/Phabricator404Controller.php',
'PhabricatorAWSConfigOptions' => 'applications/config/option/PhabricatorAWSConfigOptions.php', 'PhabricatorAWSConfigOptions' => 'applications/config/option/PhabricatorAWSConfigOptions.php',
@ -1376,10 +1376,10 @@ phutil_register_library_map(array(
'PhabricatorCoreConfigOptions' => 'applications/config/option/PhabricatorCoreConfigOptions.php', 'PhabricatorCoreConfigOptions' => 'applications/config/option/PhabricatorCoreConfigOptions.php',
'PhabricatorCountdown' => 'applications/countdown/storage/PhabricatorCountdown.php', 'PhabricatorCountdown' => 'applications/countdown/storage/PhabricatorCountdown.php',
'PhabricatorCountdownApplication' => 'applications/countdown/application/PhabricatorCountdownApplication.php', 'PhabricatorCountdownApplication' => 'applications/countdown/application/PhabricatorCountdownApplication.php',
'PhabricatorCountdownCapabilityDefaultView' => 'applications/countdown/capability/PhabricatorCountdownCapabilityDefaultView.php',
'PhabricatorCountdownController' => 'applications/countdown/controller/PhabricatorCountdownController.php', 'PhabricatorCountdownController' => 'applications/countdown/controller/PhabricatorCountdownController.php',
'PhabricatorCountdownCountdownPHIDType' => 'applications/countdown/phid/PhabricatorCountdownCountdownPHIDType.php', 'PhabricatorCountdownCountdownPHIDType' => 'applications/countdown/phid/PhabricatorCountdownCountdownPHIDType.php',
'PhabricatorCountdownDAO' => 'applications/countdown/storage/PhabricatorCountdownDAO.php', 'PhabricatorCountdownDAO' => 'applications/countdown/storage/PhabricatorCountdownDAO.php',
'PhabricatorCountdownDefaultViewCapability' => 'applications/countdown/capability/PhabricatorCountdownDefaultViewCapability.php',
'PhabricatorCountdownDeleteController' => 'applications/countdown/controller/PhabricatorCountdownDeleteController.php', 'PhabricatorCountdownDeleteController' => 'applications/countdown/controller/PhabricatorCountdownDeleteController.php',
'PhabricatorCountdownEditController' => 'applications/countdown/controller/PhabricatorCountdownEditController.php', 'PhabricatorCountdownEditController' => 'applications/countdown/controller/PhabricatorCountdownEditController.php',
'PhabricatorCountdownListController' => 'applications/countdown/controller/PhabricatorCountdownListController.php', 'PhabricatorCountdownListController' => 'applications/countdown/controller/PhabricatorCountdownListController.php',
@ -1686,7 +1686,6 @@ phutil_register_library_map(array(
'PhabricatorLogoutController' => 'applications/auth/controller/PhabricatorLogoutController.php', 'PhabricatorLogoutController' => 'applications/auth/controller/PhabricatorLogoutController.php',
'PhabricatorMacroApplication' => 'applications/macro/application/PhabricatorMacroApplication.php', 'PhabricatorMacroApplication' => 'applications/macro/application/PhabricatorMacroApplication.php',
'PhabricatorMacroAudioController' => 'applications/macro/controller/PhabricatorMacroAudioController.php', 'PhabricatorMacroAudioController' => 'applications/macro/controller/PhabricatorMacroAudioController.php',
'PhabricatorMacroCapabilityManage' => 'applications/macro/capability/PhabricatorMacroCapabilityManage.php',
'PhabricatorMacroCommentController' => 'applications/macro/controller/PhabricatorMacroCommentController.php', 'PhabricatorMacroCommentController' => 'applications/macro/controller/PhabricatorMacroCommentController.php',
'PhabricatorMacroConfigOptions' => 'applications/macro/config/PhabricatorMacroConfigOptions.php', 'PhabricatorMacroConfigOptions' => 'applications/macro/config/PhabricatorMacroConfigOptions.php',
'PhabricatorMacroController' => 'applications/macro/controller/PhabricatorMacroController.php', 'PhabricatorMacroController' => 'applications/macro/controller/PhabricatorMacroController.php',
@ -1697,6 +1696,7 @@ phutil_register_library_map(array(
'PhabricatorMacroListController' => 'applications/macro/controller/PhabricatorMacroListController.php', 'PhabricatorMacroListController' => 'applications/macro/controller/PhabricatorMacroListController.php',
'PhabricatorMacroMacroPHIDType' => 'applications/macro/phid/PhabricatorMacroMacroPHIDType.php', 'PhabricatorMacroMacroPHIDType' => 'applications/macro/phid/PhabricatorMacroMacroPHIDType.php',
'PhabricatorMacroMailReceiver' => 'applications/macro/mail/PhabricatorMacroMailReceiver.php', 'PhabricatorMacroMailReceiver' => 'applications/macro/mail/PhabricatorMacroMailReceiver.php',
'PhabricatorMacroManageCapability' => 'applications/macro/capability/PhabricatorMacroManageCapability.php',
'PhabricatorMacroMemeController' => 'applications/macro/controller/PhabricatorMacroMemeController.php', 'PhabricatorMacroMemeController' => 'applications/macro/controller/PhabricatorMacroMemeController.php',
'PhabricatorMacroMemeDialogController' => 'applications/macro/controller/PhabricatorMacroMemeDialogController.php', 'PhabricatorMacroMemeDialogController' => 'applications/macro/controller/PhabricatorMacroMemeDialogController.php',
'PhabricatorMacroQuery' => 'applications/macro/query/PhabricatorMacroQuery.php', 'PhabricatorMacroQuery' => 'applications/macro/query/PhabricatorMacroQuery.php',
@ -1811,13 +1811,13 @@ phutil_register_library_map(array(
'PhabricatorOAuthServerAuthController' => 'applications/oauthserver/controller/PhabricatorOAuthServerAuthController.php', 'PhabricatorOAuthServerAuthController' => 'applications/oauthserver/controller/PhabricatorOAuthServerAuthController.php',
'PhabricatorOAuthServerAuthorizationCode' => 'applications/oauthserver/storage/PhabricatorOAuthServerAuthorizationCode.php', 'PhabricatorOAuthServerAuthorizationCode' => 'applications/oauthserver/storage/PhabricatorOAuthServerAuthorizationCode.php',
'PhabricatorOAuthServerAuthorizationsSettingsPanel' => 'applications/oauthserver/panel/PhabricatorOAuthServerAuthorizationsSettingsPanel.php', 'PhabricatorOAuthServerAuthorizationsSettingsPanel' => 'applications/oauthserver/panel/PhabricatorOAuthServerAuthorizationsSettingsPanel.php',
'PhabricatorOAuthServerCapabilityCreateClients' => 'applications/oauthserver/capability/PhabricatorOAuthServerCapabilityCreateClients.php',
'PhabricatorOAuthServerClient' => 'applications/oauthserver/storage/PhabricatorOAuthServerClient.php', 'PhabricatorOAuthServerClient' => 'applications/oauthserver/storage/PhabricatorOAuthServerClient.php',
'PhabricatorOAuthServerClientAuthorizationPHIDType' => 'applications/oauthserver/phid/PhabricatorOAuthServerClientAuthorizationPHIDType.php', 'PhabricatorOAuthServerClientAuthorizationPHIDType' => 'applications/oauthserver/phid/PhabricatorOAuthServerClientAuthorizationPHIDType.php',
'PhabricatorOAuthServerClientPHIDType' => 'applications/oauthserver/phid/PhabricatorOAuthServerClientPHIDType.php', 'PhabricatorOAuthServerClientPHIDType' => 'applications/oauthserver/phid/PhabricatorOAuthServerClientPHIDType.php',
'PhabricatorOAuthServerClientQuery' => 'applications/oauthserver/query/PhabricatorOAuthServerClientQuery.php', 'PhabricatorOAuthServerClientQuery' => 'applications/oauthserver/query/PhabricatorOAuthServerClientQuery.php',
'PhabricatorOAuthServerClientSearchEngine' => 'applications/oauthserver/query/PhabricatorOAuthServerClientSearchEngine.php', 'PhabricatorOAuthServerClientSearchEngine' => 'applications/oauthserver/query/PhabricatorOAuthServerClientSearchEngine.php',
'PhabricatorOAuthServerController' => 'applications/oauthserver/controller/PhabricatorOAuthServerController.php', 'PhabricatorOAuthServerController' => 'applications/oauthserver/controller/PhabricatorOAuthServerController.php',
'PhabricatorOAuthServerCreateClientsCapability' => 'applications/oauthserver/capability/PhabricatorOAuthServerCreateClientsCapability.php',
'PhabricatorOAuthServerDAO' => 'applications/oauthserver/storage/PhabricatorOAuthServerDAO.php', 'PhabricatorOAuthServerDAO' => 'applications/oauthserver/storage/PhabricatorOAuthServerDAO.php',
'PhabricatorOAuthServerScope' => 'applications/oauthserver/PhabricatorOAuthServerScope.php', 'PhabricatorOAuthServerScope' => 'applications/oauthserver/PhabricatorOAuthServerScope.php',
'PhabricatorOAuthServerTestCase' => 'applications/oauthserver/__tests__/PhabricatorOAuthServerTestCase.php', 'PhabricatorOAuthServerTestCase' => 'applications/oauthserver/__tests__/PhabricatorOAuthServerTestCase.php',
@ -1928,10 +1928,10 @@ phutil_register_library_map(array(
'PhabricatorPolicyApplication' => 'applications/policy/application/PhabricatorPolicyApplication.php', 'PhabricatorPolicyApplication' => 'applications/policy/application/PhabricatorPolicyApplication.php',
'PhabricatorPolicyAwareQuery' => 'infrastructure/query/policy/PhabricatorPolicyAwareQuery.php', 'PhabricatorPolicyAwareQuery' => 'infrastructure/query/policy/PhabricatorPolicyAwareQuery.php',
'PhabricatorPolicyAwareTestQuery' => 'applications/policy/__tests__/PhabricatorPolicyAwareTestQuery.php', 'PhabricatorPolicyAwareTestQuery' => 'applications/policy/__tests__/PhabricatorPolicyAwareTestQuery.php',
'PhabricatorPolicyCanEditCapability' => 'applications/policy/capability/PhabricatorPolicyCanEditCapability.php',
'PhabricatorPolicyCanJoinCapability' => 'applications/policy/capability/PhabricatorPolicyCanJoinCapability.php',
'PhabricatorPolicyCanViewCapability' => 'applications/policy/capability/PhabricatorPolicyCanViewCapability.php',
'PhabricatorPolicyCapability' => 'applications/policy/capability/PhabricatorPolicyCapability.php', 'PhabricatorPolicyCapability' => 'applications/policy/capability/PhabricatorPolicyCapability.php',
'PhabricatorPolicyCapabilityCanEdit' => 'applications/policy/capability/PhabricatorPolicyCapabilityCanEdit.php',
'PhabricatorPolicyCapabilityCanJoin' => 'applications/policy/capability/PhabricatorPolicyCapabilityCanJoin.php',
'PhabricatorPolicyCapabilityCanView' => 'applications/policy/capability/PhabricatorPolicyCapabilityCanView.php',
'PhabricatorPolicyConfigOptions' => 'applications/policy/config/PhabricatorPolicyConfigOptions.php', 'PhabricatorPolicyConfigOptions' => 'applications/policy/config/PhabricatorPolicyConfigOptions.php',
'PhabricatorPolicyConstants' => 'applications/policy/constants/PhabricatorPolicyConstants.php', 'PhabricatorPolicyConstants' => 'applications/policy/constants/PhabricatorPolicyConstants.php',
'PhabricatorPolicyController' => 'applications/policy/controller/PhabricatorPolicyController.php', 'PhabricatorPolicyController' => 'applications/policy/controller/PhabricatorPolicyController.php',
@ -2217,13 +2217,13 @@ phutil_register_library_map(array(
'PhabricatorSetupIssueExample' => 'applications/uiexample/examples/PhabricatorSetupIssueExample.php', 'PhabricatorSetupIssueExample' => 'applications/uiexample/examples/PhabricatorSetupIssueExample.php',
'PhabricatorSetupIssueView' => 'applications/config/view/PhabricatorSetupIssueView.php', 'PhabricatorSetupIssueView' => 'applications/config/view/PhabricatorSetupIssueView.php',
'PhabricatorSlowvoteApplication' => 'applications/slowvote/application/PhabricatorSlowvoteApplication.php', 'PhabricatorSlowvoteApplication' => 'applications/slowvote/application/PhabricatorSlowvoteApplication.php',
'PhabricatorSlowvoteCapabilityDefaultView' => 'applications/slowvote/capability/PhabricatorSlowvoteCapabilityDefaultView.php',
'PhabricatorSlowvoteChoice' => 'applications/slowvote/storage/PhabricatorSlowvoteChoice.php', 'PhabricatorSlowvoteChoice' => 'applications/slowvote/storage/PhabricatorSlowvoteChoice.php',
'PhabricatorSlowvoteCloseController' => 'applications/slowvote/controller/PhabricatorSlowvoteCloseController.php', 'PhabricatorSlowvoteCloseController' => 'applications/slowvote/controller/PhabricatorSlowvoteCloseController.php',
'PhabricatorSlowvoteComment' => 'applications/slowvote/storage/PhabricatorSlowvoteComment.php', 'PhabricatorSlowvoteComment' => 'applications/slowvote/storage/PhabricatorSlowvoteComment.php',
'PhabricatorSlowvoteCommentController' => 'applications/slowvote/controller/PhabricatorSlowvoteCommentController.php', 'PhabricatorSlowvoteCommentController' => 'applications/slowvote/controller/PhabricatorSlowvoteCommentController.php',
'PhabricatorSlowvoteController' => 'applications/slowvote/controller/PhabricatorSlowvoteController.php', 'PhabricatorSlowvoteController' => 'applications/slowvote/controller/PhabricatorSlowvoteController.php',
'PhabricatorSlowvoteDAO' => 'applications/slowvote/storage/PhabricatorSlowvoteDAO.php', 'PhabricatorSlowvoteDAO' => 'applications/slowvote/storage/PhabricatorSlowvoteDAO.php',
'PhabricatorSlowvoteDefaultViewCapability' => 'applications/slowvote/capability/PhabricatorSlowvoteDefaultViewCapability.php',
'PhabricatorSlowvoteEditController' => 'applications/slowvote/controller/PhabricatorSlowvoteEditController.php', 'PhabricatorSlowvoteEditController' => 'applications/slowvote/controller/PhabricatorSlowvoteEditController.php',
'PhabricatorSlowvoteEditor' => 'applications/slowvote/editor/PhabricatorSlowvoteEditor.php', 'PhabricatorSlowvoteEditor' => 'applications/slowvote/editor/PhabricatorSlowvoteEditor.php',
'PhabricatorSlowvoteListController' => 'applications/slowvote/controller/PhabricatorSlowvoteListController.php', 'PhabricatorSlowvoteListController' => 'applications/slowvote/controller/PhabricatorSlowvoteListController.php',
@ -2453,11 +2453,11 @@ phutil_register_library_map(array(
'PhluxVariableQuery' => 'applications/phlux/query/PhluxVariableQuery.php', 'PhluxVariableQuery' => 'applications/phlux/query/PhluxVariableQuery.php',
'PhluxViewController' => 'applications/phlux/controller/PhluxViewController.php', 'PhluxViewController' => 'applications/phlux/controller/PhluxViewController.php',
'PholioActionMenuEventListener' => 'applications/pholio/event/PholioActionMenuEventListener.php', 'PholioActionMenuEventListener' => 'applications/pholio/event/PholioActionMenuEventListener.php',
'PholioCapabilityDefaultEdit' => 'applications/pholio/capability/PholioCapabilityDefaultEdit.php',
'PholioCapabilityDefaultView' => 'applications/pholio/capability/PholioCapabilityDefaultView.php',
'PholioConstants' => 'applications/pholio/constants/PholioConstants.php', 'PholioConstants' => 'applications/pholio/constants/PholioConstants.php',
'PholioController' => 'applications/pholio/controller/PholioController.php', 'PholioController' => 'applications/pholio/controller/PholioController.php',
'PholioDAO' => 'applications/pholio/storage/PholioDAO.php', 'PholioDAO' => 'applications/pholio/storage/PholioDAO.php',
'PholioDefaultEditCapability' => 'applications/pholio/capability/PholioDefaultEditCapability.php',
'PholioDefaultViewCapability' => 'applications/pholio/capability/PholioDefaultViewCapability.php',
'PholioImage' => 'applications/pholio/storage/PholioImage.php', 'PholioImage' => 'applications/pholio/storage/PholioImage.php',
'PholioImagePHIDType' => 'applications/pholio/phid/PholioImagePHIDType.php', 'PholioImagePHIDType' => 'applications/pholio/phid/PholioImagePHIDType.php',
'PholioImageQuery' => 'applications/pholio/query/PholioImageQuery.php', 'PholioImageQuery' => 'applications/pholio/query/PholioImageQuery.php',
@ -2538,7 +2538,7 @@ phutil_register_library_map(array(
'PhortuneTestPaymentProvider' => 'applications/phortune/provider/PhortuneTestPaymentProvider.php', 'PhortuneTestPaymentProvider' => 'applications/phortune/provider/PhortuneTestPaymentProvider.php',
'PhortuneWePayPaymentProvider' => 'applications/phortune/provider/PhortuneWePayPaymentProvider.php', 'PhortuneWePayPaymentProvider' => 'applications/phortune/provider/PhortuneWePayPaymentProvider.php',
'PhragmentBrowseController' => 'applications/phragment/controller/PhragmentBrowseController.php', 'PhragmentBrowseController' => 'applications/phragment/controller/PhragmentBrowseController.php',
'PhragmentCapabilityCanCreate' => 'applications/phragment/capability/PhragmentCapabilityCanCreate.php', 'PhragmentCanCreateCapability' => 'applications/phragment/capability/PhragmentCanCreateCapability.php',
'PhragmentController' => 'applications/phragment/controller/PhragmentController.php', 'PhragmentController' => 'applications/phragment/controller/PhragmentController.php',
'PhragmentCreateController' => 'applications/phragment/controller/PhragmentCreateController.php', 'PhragmentCreateController' => 'applications/phragment/controller/PhragmentCreateController.php',
'PhragmentDAO' => 'applications/phragment/storage/PhragmentDAO.php', 'PhragmentDAO' => 'applications/phragment/storage/PhragmentDAO.php',
@ -2647,7 +2647,7 @@ phutil_register_library_map(array(
'PonderVoteEditor' => 'applications/ponder/editor/PonderVoteEditor.php', 'PonderVoteEditor' => 'applications/ponder/editor/PonderVoteEditor.php',
'PonderVoteSaveController' => 'applications/ponder/controller/PonderVoteSaveController.php', 'PonderVoteSaveController' => 'applications/ponder/controller/PonderVoteSaveController.php',
'ProjectBoardTaskCard' => 'applications/project/view/ProjectBoardTaskCard.php', 'ProjectBoardTaskCard' => 'applications/project/view/ProjectBoardTaskCard.php',
'ProjectCapabilityCreateProjects' => 'applications/project/capability/ProjectCapabilityCreateProjects.php', 'ProjectCreateProjectsCapability' => 'applications/project/capability/ProjectCreateProjectsCapability.php',
'ProjectRemarkupRule' => 'applications/project/remarkup/ProjectRemarkupRule.php', 'ProjectRemarkupRule' => 'applications/project/remarkup/ProjectRemarkupRule.php',
'QueryFormattingTestCase' => 'infrastructure/storage/__tests__/QueryFormattingTestCase.php', 'QueryFormattingTestCase' => 'infrastructure/storage/__tests__/QueryFormattingTestCase.php',
'ReleephAuthorFieldSpecification' => 'applications/releeph/field/specification/ReleephAuthorFieldSpecification.php', 'ReleephAuthorFieldSpecification' => 'applications/releeph/field/specification/ReleephAuthorFieldSpecification.php',
@ -3060,7 +3060,6 @@ phutil_register_library_map(array(
'DifferentialAuthorField' => 'DifferentialCustomField', 'DifferentialAuthorField' => 'DifferentialCustomField',
'DifferentialBlameRevisionField' => 'DifferentialStoredCustomField', 'DifferentialBlameRevisionField' => 'DifferentialStoredCustomField',
'DifferentialBranchField' => 'DifferentialCustomField', 'DifferentialBranchField' => 'DifferentialCustomField',
'DifferentialCapabilityDefaultView' => 'PhabricatorPolicyCapability',
'DifferentialChangesSinceLastUpdateField' => 'DifferentialCustomField', 'DifferentialChangesSinceLastUpdateField' => 'DifferentialCustomField',
'DifferentialChangeset' => array( 'DifferentialChangeset' => array(
'DifferentialDAO', 'DifferentialDAO',
@ -3093,6 +3092,7 @@ phutil_register_library_map(array(
'DifferentialCustomFieldStorage' => 'PhabricatorCustomFieldStorage', 'DifferentialCustomFieldStorage' => 'PhabricatorCustomFieldStorage',
'DifferentialCustomFieldStringIndex' => 'PhabricatorCustomFieldStringIndexStorage', 'DifferentialCustomFieldStringIndex' => 'PhabricatorCustomFieldStringIndexStorage',
'DifferentialDAO' => 'PhabricatorLiskDAO', 'DifferentialDAO' => 'PhabricatorLiskDAO',
'DifferentialDefaultViewCapability' => 'PhabricatorPolicyCapability',
'DifferentialDependenciesField' => 'DifferentialCustomField', 'DifferentialDependenciesField' => 'DifferentialCustomField',
'DifferentialDependsOnField' => 'DifferentialCustomField', 'DifferentialDependsOnField' => 'DifferentialCustomField',
'DifferentialDiff' => array( 'DifferentialDiff' => array(
@ -3206,11 +3206,6 @@ phutil_register_library_map(array(
'DiffusionBrowseMainController' => 'DiffusionBrowseController', 'DiffusionBrowseMainController' => 'DiffusionBrowseController',
'DiffusionBrowseSearchController' => 'DiffusionBrowseController', 'DiffusionBrowseSearchController' => 'DiffusionBrowseController',
'DiffusionBrowseTableView' => 'DiffusionView', 'DiffusionBrowseTableView' => 'DiffusionView',
'DiffusionCapabilityCreateRepositories' => 'PhabricatorPolicyCapability',
'DiffusionCapabilityDefaultEdit' => 'PhabricatorPolicyCapability',
'DiffusionCapabilityDefaultPush' => 'PhabricatorPolicyCapability',
'DiffusionCapabilityDefaultView' => 'PhabricatorPolicyCapability',
'DiffusionCapabilityPush' => 'PhabricatorPolicyCapability',
'DiffusionChangeController' => 'DiffusionController', 'DiffusionChangeController' => 'DiffusionController',
'DiffusionCommentListView' => 'AphrontView', 'DiffusionCommentListView' => 'AphrontView',
'DiffusionCommentView' => 'AphrontView', 'DiffusionCommentView' => 'AphrontView',
@ -3227,6 +3222,10 @@ phutil_register_library_map(array(
'DiffusionCommitRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'DiffusionCommitRemarkupRule' => 'PhabricatorRemarkupRuleObject',
'DiffusionCommitTagsController' => 'DiffusionController', 'DiffusionCommitTagsController' => 'DiffusionController',
'DiffusionController' => 'PhabricatorController', 'DiffusionController' => 'PhabricatorController',
'DiffusionCreateRepositoriesCapability' => 'PhabricatorPolicyCapability',
'DiffusionDefaultEditCapability' => 'PhabricatorPolicyCapability',
'DiffusionDefaultPushCapability' => 'PhabricatorPolicyCapability',
'DiffusionDefaultViewCapability' => 'PhabricatorPolicyCapability',
'DiffusionDiffController' => 'DiffusionController', 'DiffusionDiffController' => 'DiffusionController',
'DiffusionDoorkeeperCommitFeedStoryPublisher' => 'DoorkeeperFeedStoryPublisher', 'DiffusionDoorkeeperCommitFeedStoryPublisher' => 'DoorkeeperFeedStoryPublisher',
'DiffusionEmptyResultView' => 'DiffusionView', 'DiffusionEmptyResultView' => 'DiffusionView',
@ -3264,6 +3263,7 @@ phutil_register_library_map(array(
'DiffusionPathQueryTestCase' => 'PhabricatorTestCase', 'DiffusionPathQueryTestCase' => 'PhabricatorTestCase',
'DiffusionPathTreeController' => 'DiffusionController', 'DiffusionPathTreeController' => 'DiffusionController',
'DiffusionPathValidateController' => 'DiffusionController', 'DiffusionPathValidateController' => 'DiffusionController',
'DiffusionPushCapability' => 'PhabricatorPolicyCapability',
'DiffusionPushEventViewController' => 'DiffusionPushLogController', 'DiffusionPushEventViewController' => 'DiffusionPushLogController',
'DiffusionPushLogController' => 'DiffusionController', 'DiffusionPushLogController' => 'DiffusionController',
'DiffusionPushLogListController' => 'DiffusionPushLogController', 'DiffusionPushLogListController' => 'DiffusionPushLogController',
@ -3393,13 +3393,13 @@ phutil_register_library_map(array(
'DrydockBlueprintTransaction' => 'PhabricatorApplicationTransaction', 'DrydockBlueprintTransaction' => 'PhabricatorApplicationTransaction',
'DrydockBlueprintTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 'DrydockBlueprintTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'DrydockBlueprintViewController' => 'DrydockBlueprintController', 'DrydockBlueprintViewController' => 'DrydockBlueprintController',
'DrydockCapabilityCreateBlueprints' => 'PhabricatorPolicyCapability',
'DrydockCapabilityDefaultEdit' => 'PhabricatorPolicyCapability',
'DrydockCapabilityDefaultView' => 'PhabricatorPolicyCapability',
'DrydockCommandInterface' => 'DrydockInterface', 'DrydockCommandInterface' => 'DrydockInterface',
'DrydockConsoleController' => 'DrydockController', 'DrydockConsoleController' => 'DrydockController',
'DrydockController' => 'PhabricatorController', 'DrydockController' => 'PhabricatorController',
'DrydockCreateBlueprintsCapability' => 'PhabricatorPolicyCapability',
'DrydockDAO' => 'PhabricatorLiskDAO', 'DrydockDAO' => 'PhabricatorLiskDAO',
'DrydockDefaultEditCapability' => 'PhabricatorPolicyCapability',
'DrydockDefaultViewCapability' => 'PhabricatorPolicyCapability',
'DrydockFilesystemInterface' => 'DrydockInterface', 'DrydockFilesystemInterface' => 'DrydockInterface',
'DrydockLease' => array( 'DrydockLease' => array(
'DrydockDAO', 'DrydockDAO',
@ -3536,12 +3536,12 @@ phutil_register_library_map(array(
'HarbormasterBuildableTransactionEditor' => 'PhabricatorApplicationTransactionEditor', 'HarbormasterBuildableTransactionEditor' => 'PhabricatorApplicationTransactionEditor',
'HarbormasterBuildableTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 'HarbormasterBuildableTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'HarbormasterBuildableViewController' => 'HarbormasterController', 'HarbormasterBuildableViewController' => 'HarbormasterController',
'HarbormasterCapabilityManagePlans' => 'PhabricatorPolicyCapability',
'HarbormasterCommandBuildStepImplementation' => 'HarbormasterBuildStepImplementation', 'HarbormasterCommandBuildStepImplementation' => 'HarbormasterBuildStepImplementation',
'HarbormasterController' => 'PhabricatorController', 'HarbormasterController' => 'PhabricatorController',
'HarbormasterDAO' => 'PhabricatorLiskDAO', 'HarbormasterDAO' => 'PhabricatorLiskDAO',
'HarbormasterHTTPRequestBuildStepImplementation' => 'HarbormasterBuildStepImplementation', 'HarbormasterHTTPRequestBuildStepImplementation' => 'HarbormasterBuildStepImplementation',
'HarbormasterLeaseHostBuildStepImplementation' => 'HarbormasterBuildStepImplementation', 'HarbormasterLeaseHostBuildStepImplementation' => 'HarbormasterBuildStepImplementation',
'HarbormasterManagePlansCapability' => 'PhabricatorPolicyCapability',
'HarbormasterManagementBuildWorkflow' => 'HarbormasterManagementWorkflow', 'HarbormasterManagementBuildWorkflow' => 'HarbormasterManagementWorkflow',
'HarbormasterManagementUpdateWorkflow' => 'HarbormasterManagementWorkflow', 'HarbormasterManagementUpdateWorkflow' => 'HarbormasterManagementWorkflow',
'HarbormasterManagementWorkflow' => 'PhabricatorManagementWorkflow', 'HarbormasterManagementWorkflow' => 'PhabricatorManagementWorkflow',
@ -3568,7 +3568,6 @@ phutil_register_library_map(array(
'HarbormasterWorker' => 'PhabricatorWorker', 'HarbormasterWorker' => 'PhabricatorWorker',
'HeraldAction' => 'HeraldDAO', 'HeraldAction' => 'HeraldDAO',
'HeraldApplyTranscript' => 'HeraldDAO', 'HeraldApplyTranscript' => 'HeraldDAO',
'HeraldCapabilityManageGlobalRules' => 'PhabricatorPolicyCapability',
'HeraldCommitAdapter' => 'HeraldAdapter', 'HeraldCommitAdapter' => 'HeraldAdapter',
'HeraldCondition' => 'HeraldDAO', 'HeraldCondition' => 'HeraldDAO',
'HeraldController' => 'PhabricatorController', 'HeraldController' => 'PhabricatorController',
@ -3579,6 +3578,7 @@ phutil_register_library_map(array(
'HeraldInvalidActionException' => 'Exception', 'HeraldInvalidActionException' => 'Exception',
'HeraldInvalidConditionException' => 'Exception', 'HeraldInvalidConditionException' => 'Exception',
'HeraldInvalidFieldException' => 'Exception', 'HeraldInvalidFieldException' => 'Exception',
'HeraldManageGlobalRulesCapability' => 'PhabricatorPolicyCapability',
'HeraldManiphestTaskAdapter' => 'HeraldAdapter', 'HeraldManiphestTaskAdapter' => 'HeraldAdapter',
'HeraldNewController' => 'HeraldController', 'HeraldNewController' => 'HeraldController',
'HeraldPholioMockAdapter' => 'HeraldAdapter', 'HeraldPholioMockAdapter' => 'HeraldAdapter',
@ -3621,11 +3621,11 @@ phutil_register_library_map(array(
'JavelinUIExample' => 'PhabricatorUIExample', 'JavelinUIExample' => 'PhabricatorUIExample',
'JavelinViewExample' => 'PhabricatorUIExample', 'JavelinViewExample' => 'PhabricatorUIExample',
'JavelinViewExampleServerView' => 'AphrontView', 'JavelinViewExampleServerView' => 'AphrontView',
'LegalpadCapabilityCreateDocuments' => 'PhabricatorPolicyCapability',
'LegalpadCapabilityDefaultEdit' => 'PhabricatorPolicyCapability',
'LegalpadCapabilityDefaultView' => 'PhabricatorPolicyCapability',
'LegalpadController' => 'PhabricatorController', 'LegalpadController' => 'PhabricatorController',
'LegalpadCreateDocumentsCapability' => 'PhabricatorPolicyCapability',
'LegalpadDAO' => 'PhabricatorLiskDAO', 'LegalpadDAO' => 'PhabricatorLiskDAO',
'LegalpadDefaultEditCapability' => 'PhabricatorPolicyCapability',
'LegalpadDefaultViewCapability' => 'PhabricatorPolicyCapability',
'LegalpadDocument' => array( 'LegalpadDocument' => array(
'LegalpadDAO', 'LegalpadDAO',
'PhabricatorPolicyInterface', 'PhabricatorPolicyInterface',
@ -3676,14 +3676,7 @@ phutil_register_library_map(array(
'LiskRawMigrationIterator' => 'PhutilBufferedIterator', 'LiskRawMigrationIterator' => 'PhutilBufferedIterator',
'ManiphestActionMenuEventListener' => 'PhabricatorEventListener', 'ManiphestActionMenuEventListener' => 'PhabricatorEventListener',
'ManiphestBatchEditController' => 'ManiphestController', 'ManiphestBatchEditController' => 'ManiphestController',
'ManiphestCapabilityBulkEdit' => 'PhabricatorPolicyCapability', 'ManiphestBulkEditCapability' => 'PhabricatorPolicyCapability',
'ManiphestCapabilityDefaultEdit' => 'PhabricatorPolicyCapability',
'ManiphestCapabilityDefaultView' => 'PhabricatorPolicyCapability',
'ManiphestCapabilityEditAssign' => 'PhabricatorPolicyCapability',
'ManiphestCapabilityEditPolicies' => 'PhabricatorPolicyCapability',
'ManiphestCapabilityEditPriority' => 'PhabricatorPolicyCapability',
'ManiphestCapabilityEditProjects' => 'PhabricatorPolicyCapability',
'ManiphestCapabilityEditStatus' => 'PhabricatorPolicyCapability',
'ManiphestConfiguredCustomField' => array( 'ManiphestConfiguredCustomField' => array(
'ManiphestCustomField', 'ManiphestCustomField',
'PhabricatorStandardCustomFieldInterface', 'PhabricatorStandardCustomFieldInterface',
@ -3697,6 +3690,13 @@ phutil_register_library_map(array(
'ManiphestCustomFieldStorage' => 'PhabricatorCustomFieldStorage', 'ManiphestCustomFieldStorage' => 'PhabricatorCustomFieldStorage',
'ManiphestCustomFieldStringIndex' => 'PhabricatorCustomFieldStringIndexStorage', 'ManiphestCustomFieldStringIndex' => 'PhabricatorCustomFieldStringIndexStorage',
'ManiphestDAO' => 'PhabricatorLiskDAO', 'ManiphestDAO' => 'PhabricatorLiskDAO',
'ManiphestDefaultEditCapability' => 'PhabricatorPolicyCapability',
'ManiphestDefaultViewCapability' => 'PhabricatorPolicyCapability',
'ManiphestEditAssignCapability' => 'PhabricatorPolicyCapability',
'ManiphestEditPoliciesCapability' => 'PhabricatorPolicyCapability',
'ManiphestEditPriorityCapability' => 'PhabricatorPolicyCapability',
'ManiphestEditProjectsCapability' => 'PhabricatorPolicyCapability',
'ManiphestEditStatusCapability' => 'PhabricatorPolicyCapability',
'ManiphestExcelDefaultFormat' => 'ManiphestExcelFormat', 'ManiphestExcelDefaultFormat' => 'ManiphestExcelFormat',
'ManiphestExportController' => 'ManiphestController', 'ManiphestExportController' => 'ManiphestController',
'ManiphestHovercardEventListener' => 'PhabricatorEventListener', 'ManiphestHovercardEventListener' => 'PhabricatorEventListener',
@ -3749,9 +3749,6 @@ phutil_register_library_map(array(
'MetaMTAMailSentGarbageCollector' => 'PhabricatorGarbageCollector', 'MetaMTAMailSentGarbageCollector' => 'PhabricatorGarbageCollector',
'MetaMTANotificationType' => 'MetaMTAConstants', 'MetaMTANotificationType' => 'MetaMTAConstants',
'MetaMTAReceivedMailStatus' => 'MetaMTAConstants', 'MetaMTAReceivedMailStatus' => 'MetaMTAConstants',
'NuanceCapabilitySourceDefaultEdit' => 'PhabricatorPolicyCapability',
'NuanceCapabilitySourceDefaultView' => 'PhabricatorPolicyCapability',
'NuanceCapabilitySourceManage' => 'PhabricatorPolicyCapability',
'NuanceController' => 'PhabricatorController', 'NuanceController' => 'PhabricatorController',
'NuanceDAO' => 'PhabricatorLiskDAO', 'NuanceDAO' => 'PhabricatorLiskDAO',
'NuanceItem' => array( 'NuanceItem' => array(
@ -3795,9 +3792,12 @@ phutil_register_library_map(array(
'NuanceDAO', 'NuanceDAO',
'PhabricatorPolicyInterface', 'PhabricatorPolicyInterface',
), ),
'NuanceSourceDefaultEditCapability' => 'PhabricatorPolicyCapability',
'NuanceSourceDefaultViewCapability' => 'PhabricatorPolicyCapability',
'NuanceSourceDefinition' => 'Phobject', 'NuanceSourceDefinition' => 'Phobject',
'NuanceSourceEditController' => 'NuanceController', 'NuanceSourceEditController' => 'NuanceController',
'NuanceSourceEditor' => 'PhabricatorApplicationTransactionEditor', 'NuanceSourceEditor' => 'PhabricatorApplicationTransactionEditor',
'NuanceSourceManageCapability' => 'PhabricatorPolicyCapability',
'NuanceSourcePHIDType' => 'PhabricatorPHIDType', 'NuanceSourcePHIDType' => 'PhabricatorPHIDType',
'NuanceSourceQuery' => 'NuanceQuery', 'NuanceSourceQuery' => 'NuanceQuery',
'NuanceSourceTransaction' => 'NuanceTransaction', 'NuanceSourceTransaction' => 'NuanceTransaction',
@ -3897,12 +3897,12 @@ phutil_register_library_map(array(
'PassphraseRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'PassphraseRemarkupRule' => 'PhabricatorRemarkupRuleObject',
'PassphraseSSHKey' => 'PassphraseAbstractKey', 'PassphraseSSHKey' => 'PassphraseAbstractKey',
'PassphraseSecret' => 'PassphraseDAO', 'PassphraseSecret' => 'PassphraseDAO',
'PasteCapabilityDefaultView' => 'PhabricatorPolicyCapability',
'PasteCreateMailReceiver' => 'PhabricatorMailReceiver', 'PasteCreateMailReceiver' => 'PhabricatorMailReceiver',
'PasteDefaultViewCapability' => 'PhabricatorPolicyCapability',
'PasteEmbedView' => 'AphrontView', 'PasteEmbedView' => 'AphrontView',
'PasteMockMailReceiver' => 'PhabricatorObjectMailReceiver', 'PasteMockMailReceiver' => 'PhabricatorObjectMailReceiver',
'PasteReplyHandler' => 'PhabricatorMailReplyHandler', 'PasteReplyHandler' => 'PhabricatorMailReplyHandler',
'PeopleCapabilityBrowseUserDirectory' => 'PhabricatorPolicyCapability', 'PeopleBrowseUserDirectoryCapability' => 'PhabricatorPolicyCapability',
'PeopleUserLogGarbageCollector' => 'PhabricatorGarbageCollector', 'PeopleUserLogGarbageCollector' => 'PhabricatorGarbageCollector',
'Phabricator404Controller' => 'PhabricatorController', 'Phabricator404Controller' => 'PhabricatorController',
'PhabricatorAWSConfigOptions' => 'PhabricatorApplicationConfigOptions', 'PhabricatorAWSConfigOptions' => 'PhabricatorApplicationConfigOptions',
@ -4187,10 +4187,10 @@ phutil_register_library_map(array(
'PhabricatorPolicyInterface', 'PhabricatorPolicyInterface',
), ),
'PhabricatorCountdownApplication' => 'PhabricatorApplication', 'PhabricatorCountdownApplication' => 'PhabricatorApplication',
'PhabricatorCountdownCapabilityDefaultView' => 'PhabricatorPolicyCapability',
'PhabricatorCountdownController' => 'PhabricatorController', 'PhabricatorCountdownController' => 'PhabricatorController',
'PhabricatorCountdownCountdownPHIDType' => 'PhabricatorPHIDType', 'PhabricatorCountdownCountdownPHIDType' => 'PhabricatorPHIDType',
'PhabricatorCountdownDAO' => 'PhabricatorLiskDAO', 'PhabricatorCountdownDAO' => 'PhabricatorLiskDAO',
'PhabricatorCountdownDefaultViewCapability' => 'PhabricatorPolicyCapability',
'PhabricatorCountdownDeleteController' => 'PhabricatorCountdownController', 'PhabricatorCountdownDeleteController' => 'PhabricatorCountdownController',
'PhabricatorCountdownEditController' => 'PhabricatorCountdownController', 'PhabricatorCountdownEditController' => 'PhabricatorCountdownController',
'PhabricatorCountdownListController' => 'PhabricatorCountdownController', 'PhabricatorCountdownListController' => 'PhabricatorCountdownController',
@ -4504,7 +4504,6 @@ phutil_register_library_map(array(
'PhabricatorLogoutController' => 'PhabricatorAuthController', 'PhabricatorLogoutController' => 'PhabricatorAuthController',
'PhabricatorMacroApplication' => 'PhabricatorApplication', 'PhabricatorMacroApplication' => 'PhabricatorApplication',
'PhabricatorMacroAudioController' => 'PhabricatorMacroController', 'PhabricatorMacroAudioController' => 'PhabricatorMacroController',
'PhabricatorMacroCapabilityManage' => 'PhabricatorPolicyCapability',
'PhabricatorMacroCommentController' => 'PhabricatorMacroController', 'PhabricatorMacroCommentController' => 'PhabricatorMacroController',
'PhabricatorMacroConfigOptions' => 'PhabricatorApplicationConfigOptions', 'PhabricatorMacroConfigOptions' => 'PhabricatorApplicationConfigOptions',
'PhabricatorMacroController' => 'PhabricatorController', 'PhabricatorMacroController' => 'PhabricatorController',
@ -4515,6 +4514,7 @@ phutil_register_library_map(array(
'PhabricatorMacroListController' => 'PhabricatorMacroController', 'PhabricatorMacroListController' => 'PhabricatorMacroController',
'PhabricatorMacroMacroPHIDType' => 'PhabricatorPHIDType', 'PhabricatorMacroMacroPHIDType' => 'PhabricatorPHIDType',
'PhabricatorMacroMailReceiver' => 'PhabricatorObjectMailReceiver', 'PhabricatorMacroMailReceiver' => 'PhabricatorObjectMailReceiver',
'PhabricatorMacroManageCapability' => 'PhabricatorPolicyCapability',
'PhabricatorMacroMemeController' => 'PhabricatorMacroController', 'PhabricatorMacroMemeController' => 'PhabricatorMacroController',
'PhabricatorMacroMemeDialogController' => 'PhabricatorMacroController', 'PhabricatorMacroMemeDialogController' => 'PhabricatorMacroController',
'PhabricatorMacroQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'PhabricatorMacroQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
@ -4625,7 +4625,6 @@ phutil_register_library_map(array(
'PhabricatorOAuthServerAuthController' => 'PhabricatorAuthController', 'PhabricatorOAuthServerAuthController' => 'PhabricatorAuthController',
'PhabricatorOAuthServerAuthorizationCode' => 'PhabricatorOAuthServerDAO', 'PhabricatorOAuthServerAuthorizationCode' => 'PhabricatorOAuthServerDAO',
'PhabricatorOAuthServerAuthorizationsSettingsPanel' => 'PhabricatorSettingsPanel', 'PhabricatorOAuthServerAuthorizationsSettingsPanel' => 'PhabricatorSettingsPanel',
'PhabricatorOAuthServerCapabilityCreateClients' => 'PhabricatorPolicyCapability',
'PhabricatorOAuthServerClient' => array( 'PhabricatorOAuthServerClient' => array(
'PhabricatorOAuthServerDAO', 'PhabricatorOAuthServerDAO',
'PhabricatorPolicyInterface', 'PhabricatorPolicyInterface',
@ -4635,6 +4634,7 @@ phutil_register_library_map(array(
'PhabricatorOAuthServerClientQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'PhabricatorOAuthServerClientQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhabricatorOAuthServerClientSearchEngine' => 'PhabricatorApplicationSearchEngine', 'PhabricatorOAuthServerClientSearchEngine' => 'PhabricatorApplicationSearchEngine',
'PhabricatorOAuthServerController' => 'PhabricatorController', 'PhabricatorOAuthServerController' => 'PhabricatorController',
'PhabricatorOAuthServerCreateClientsCapability' => 'PhabricatorPolicyCapability',
'PhabricatorOAuthServerDAO' => 'PhabricatorLiskDAO', 'PhabricatorOAuthServerDAO' => 'PhabricatorLiskDAO',
'PhabricatorOAuthServerTestCase' => 'PhabricatorTestCase', 'PhabricatorOAuthServerTestCase' => 'PhabricatorTestCase',
'PhabricatorOAuthServerTestController' => 'PhabricatorOAuthServerController', 'PhabricatorOAuthServerTestController' => 'PhabricatorOAuthServerController',
@ -4748,10 +4748,10 @@ phutil_register_library_map(array(
'PhabricatorPolicyApplication' => 'PhabricatorApplication', 'PhabricatorPolicyApplication' => 'PhabricatorApplication',
'PhabricatorPolicyAwareQuery' => 'PhabricatorOffsetPagedQuery', 'PhabricatorPolicyAwareQuery' => 'PhabricatorOffsetPagedQuery',
'PhabricatorPolicyAwareTestQuery' => 'PhabricatorPolicyAwareQuery', 'PhabricatorPolicyAwareTestQuery' => 'PhabricatorPolicyAwareQuery',
'PhabricatorPolicyCanEditCapability' => 'PhabricatorPolicyCapability',
'PhabricatorPolicyCanJoinCapability' => 'PhabricatorPolicyCapability',
'PhabricatorPolicyCanViewCapability' => 'PhabricatorPolicyCapability',
'PhabricatorPolicyCapability' => 'Phobject', 'PhabricatorPolicyCapability' => 'Phobject',
'PhabricatorPolicyCapabilityCanEdit' => 'PhabricatorPolicyCapability',
'PhabricatorPolicyCapabilityCanJoin' => 'PhabricatorPolicyCapability',
'PhabricatorPolicyCapabilityCanView' => 'PhabricatorPolicyCapability',
'PhabricatorPolicyConfigOptions' => 'PhabricatorApplicationConfigOptions', 'PhabricatorPolicyConfigOptions' => 'PhabricatorApplicationConfigOptions',
'PhabricatorPolicyController' => 'PhabricatorController', 'PhabricatorPolicyController' => 'PhabricatorController',
'PhabricatorPolicyDAO' => 'PhabricatorLiskDAO', 'PhabricatorPolicyDAO' => 'PhabricatorLiskDAO',
@ -5066,13 +5066,13 @@ phutil_register_library_map(array(
'PhabricatorSetupIssueExample' => 'PhabricatorUIExample', 'PhabricatorSetupIssueExample' => 'PhabricatorUIExample',
'PhabricatorSetupIssueView' => 'AphrontView', 'PhabricatorSetupIssueView' => 'AphrontView',
'PhabricatorSlowvoteApplication' => 'PhabricatorApplication', 'PhabricatorSlowvoteApplication' => 'PhabricatorApplication',
'PhabricatorSlowvoteCapabilityDefaultView' => 'PhabricatorPolicyCapability',
'PhabricatorSlowvoteChoice' => 'PhabricatorSlowvoteDAO', 'PhabricatorSlowvoteChoice' => 'PhabricatorSlowvoteDAO',
'PhabricatorSlowvoteCloseController' => 'PhabricatorSlowvoteController', 'PhabricatorSlowvoteCloseController' => 'PhabricatorSlowvoteController',
'PhabricatorSlowvoteComment' => 'PhabricatorSlowvoteDAO', 'PhabricatorSlowvoteComment' => 'PhabricatorSlowvoteDAO',
'PhabricatorSlowvoteCommentController' => 'PhabricatorSlowvoteController', 'PhabricatorSlowvoteCommentController' => 'PhabricatorSlowvoteController',
'PhabricatorSlowvoteController' => 'PhabricatorController', 'PhabricatorSlowvoteController' => 'PhabricatorController',
'PhabricatorSlowvoteDAO' => 'PhabricatorLiskDAO', 'PhabricatorSlowvoteDAO' => 'PhabricatorLiskDAO',
'PhabricatorSlowvoteDefaultViewCapability' => 'PhabricatorPolicyCapability',
'PhabricatorSlowvoteEditController' => 'PhabricatorSlowvoteController', 'PhabricatorSlowvoteEditController' => 'PhabricatorSlowvoteController',
'PhabricatorSlowvoteEditor' => 'PhabricatorApplicationTransactionEditor', 'PhabricatorSlowvoteEditor' => 'PhabricatorApplicationTransactionEditor',
'PhabricatorSlowvoteListController' => 'PhabricatorSlowvoteController', 'PhabricatorSlowvoteListController' => 'PhabricatorSlowvoteController',
@ -5322,10 +5322,10 @@ phutil_register_library_map(array(
'PhluxVariableQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'PhluxVariableQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhluxViewController' => 'PhluxController', 'PhluxViewController' => 'PhluxController',
'PholioActionMenuEventListener' => 'PhabricatorEventListener', 'PholioActionMenuEventListener' => 'PhabricatorEventListener',
'PholioCapabilityDefaultEdit' => 'PhabricatorPolicyCapability',
'PholioCapabilityDefaultView' => 'PhabricatorPolicyCapability',
'PholioController' => 'PhabricatorController', 'PholioController' => 'PhabricatorController',
'PholioDAO' => 'PhabricatorLiskDAO', 'PholioDAO' => 'PhabricatorLiskDAO',
'PholioDefaultEditCapability' => 'PhabricatorPolicyCapability',
'PholioDefaultViewCapability' => 'PhabricatorPolicyCapability',
'PholioImage' => array( 'PholioImage' => array(
'PholioDAO', 'PholioDAO',
'PhabricatorMarkupInterface', 'PhabricatorMarkupInterface',
@ -5435,7 +5435,7 @@ phutil_register_library_map(array(
'PhortuneTestPaymentProvider' => 'PhortunePaymentProvider', 'PhortuneTestPaymentProvider' => 'PhortunePaymentProvider',
'PhortuneWePayPaymentProvider' => 'PhortunePaymentProvider', 'PhortuneWePayPaymentProvider' => 'PhortunePaymentProvider',
'PhragmentBrowseController' => 'PhragmentController', 'PhragmentBrowseController' => 'PhragmentController',
'PhragmentCapabilityCanCreate' => 'PhabricatorPolicyCapability', 'PhragmentCanCreateCapability' => 'PhabricatorPolicyCapability',
'PhragmentController' => 'PhabricatorController', 'PhragmentController' => 'PhabricatorController',
'PhragmentCreateController' => 'PhragmentController', 'PhragmentCreateController' => 'PhragmentController',
'PhragmentDAO' => 'PhabricatorLiskDAO', 'PhragmentDAO' => 'PhabricatorLiskDAO',
@ -5584,7 +5584,7 @@ phutil_register_library_map(array(
'PonderVote' => 'PonderConstants', 'PonderVote' => 'PonderConstants',
'PonderVoteEditor' => 'PhabricatorEditor', 'PonderVoteEditor' => 'PhabricatorEditor',
'PonderVoteSaveController' => 'PonderController', 'PonderVoteSaveController' => 'PonderController',
'ProjectCapabilityCreateProjects' => 'PhabricatorPolicyCapability', 'ProjectCreateProjectsCapability' => 'PhabricatorPolicyCapability',
'ProjectRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'ProjectRemarkupRule' => 'PhabricatorRemarkupRuleObject',
'QueryFormattingTestCase' => 'PhabricatorTestCase', 'QueryFormattingTestCase' => 'PhabricatorTestCase',
'ReleephAuthorFieldSpecification' => 'ReleephFieldSpecification', 'ReleephAuthorFieldSpecification' => 'ReleephFieldSpecification',

View file

@ -50,7 +50,7 @@ final class PhabricatorCountdownApplication extends PhabricatorApplication {
public function getCustomCapabilities() { public function getCustomCapabilities() {
return array( return array(
PhabricatorCountdownCapabilityDefaultView::CAPABILITY => array( PhabricatorCountdownDefaultViewCapability::CAPABILITY => array(
'caption' => pht('Default view policy for new countdowns.'), 'caption' => pht('Default view policy for new countdowns.'),
), ),
); );

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorCountdownCapabilityDefaultView final class PhabricatorCountdownDefaultViewCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'countdown.default.view'; const CAPABILITY = 'countdown.default.view';

View file

@ -16,7 +16,7 @@ final class PhabricatorCountdown
->executeOne(); ->executeOne();
$view_policy = $app->getPolicy( $view_policy = $app->getPolicy(
PhabricatorCountdownCapabilityDefaultView::CAPABILITY); PhabricatorCountdownDefaultViewCapability::CAPABILITY);
return id(new PhabricatorCountdown()) return id(new PhabricatorCountdown())
->setAuthorPHID($actor->getPHID()) ->setAuthorPHID($actor->getPHID())

View file

@ -133,7 +133,7 @@ EOTEXT
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
DifferentialCapabilityDefaultView::CAPABILITY => array( DifferentialDefaultViewCapability::CAPABILITY => array(
'caption' => pht('Default view policy for newly created revisions.'), 'caption' => pht('Default view policy for newly created revisions.'),
), ),
); );

View file

@ -1,6 +1,6 @@
<?php <?php
final class DifferentialCapabilityDefaultView final class DifferentialDefaultViewCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'differential.default.view'; const CAPABILITY = 'differential.default.view';

View file

@ -121,7 +121,7 @@ final class DifferentialRevisionLandController extends DifferentialController {
$can_push = PhabricatorPolicyFilter::hasCapability( $can_push = PhabricatorPolicyFilter::hasCapability(
$request->getUser(), $request->getUser(),
$repository, $repository,
DiffusionCapabilityPush::CAPABILITY); DiffusionPushCapability::CAPABILITY);
if (!$can_push) { if (!$can_push) {
throw new Exception( throw new Exception(
@ -159,4 +159,5 @@ final class DifferentialRevisionLandController extends DifferentialController {
$lock->lock(); $lock->lock();
return $lock; return $lock;
} }
} }

View file

@ -8,7 +8,7 @@ abstract class DifferentialLandingStrategy {
PhabricatorRepository $repository); PhabricatorRepository $repository);
/** /**
* returns PhabricatorActionView or null. * @return PhabricatorActionView or null.
*/ */
abstract function createMenuItem( abstract function createMenuItem(
PhabricatorUser $viewer, PhabricatorUser $viewer,
@ -16,7 +16,7 @@ abstract class DifferentialLandingStrategy {
PhabricatorRepository $repository); PhabricatorRepository $repository);
/** /**
* returns PhabricatorActionView which can be attached to the revision view. * @return PhabricatorActionView which can be attached to the revision view.
*/ */
protected function createActionView($revision, $name) { protected function createActionView($revision, $name) {
$strategy = get_class($this); $strategy = get_class($this);
@ -34,8 +34,8 @@ abstract class DifferentialLandingStrategy {
* By default, this method checks for push permissions, and for the * By default, this method checks for push permissions, and for the
* revision being Accepted. * revision being Accepted.
* *
* @return FALSE for "not disabled"; * @return False for "not disabled"; human-readable text explaining why, if
* Human-readable text explaining why, if it is disabled; * it is disabled.
*/ */
public function isActionDisabled( public function isActionDisabled(
PhabricatorUser $viewer, PhabricatorUser $viewer,
@ -50,7 +50,7 @@ abstract class DifferentialLandingStrategy {
if (!PhabricatorPolicyFilter::hasCapability( if (!PhabricatorPolicyFilter::hasCapability(
$viewer, $viewer,
$repository, $repository,
DiffusionCapabilityPush::CAPABILITY)) { DiffusionPushCapability::CAPABILITY)) {
return pht('You do not have permissions to push to this repository.'); return pht('You do not have permissions to push to this repository.');
} }
@ -58,29 +58,26 @@ abstract class DifferentialLandingStrategy {
} }
/** /**
* might break if repository is not Git. * Might break if repository is not Git.
*/ */
protected function getGitWorkspace(PhabricatorRepository $repository) { protected function getGitWorkspace(PhabricatorRepository $repository) {
try { try {
return DifferentialGetWorkingCopy::getCleanGitWorkspace($repository); return DifferentialGetWorkingCopy::getCleanGitWorkspace($repository);
} catch (Exception $e) { } catch (Exception $e) {
throw new PhutilProxyException( throw new PhutilProxyException('Failed to allocate a workspace', $e);
'Failed to allocate a workspace',
$e);
} }
} }
/** /**
* might break if repository is not Mercurial. * Might break if repository is not Mercurial.
*/ */
protected function getMercurialWorkspace(PhabricatorRepository $repository) { protected function getMercurialWorkspace(PhabricatorRepository $repository) {
try { try {
return DifferentialGetWorkingCopy::getCleanMercurialWorkspace( return DifferentialGetWorkingCopy::getCleanMercurialWorkspace(
$repository); $repository);
} catch (Exception $e) { } catch (Exception $e) {
throw new PhutilProxyException( throw new PhutilProxyException('Failed to allocate a workspace', $e);
'Failed to allocate a workspace',
$e);
} }
} }
} }

View file

@ -57,7 +57,7 @@ final class DifferentialRevision extends DifferentialDAO
->executeOne(); ->executeOne();
$view_policy = $app->getPolicy( $view_policy = $app->getPolicy(
DifferentialCapabilityDefaultView::CAPABILITY); DifferentialDefaultViewCapability::CAPABILITY);
return id(new DifferentialRevision()) return id(new DifferentialRevision())
->setViewPolicy($view_policy) ->setViewPolicy($view_policy)

View file

@ -130,12 +130,12 @@ final class PhabricatorDiffusionApplication extends PhabricatorApplication {
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
DiffusionCapabilityDefaultView::CAPABILITY => array(), DiffusionDefaultViewCapability::CAPABILITY => array(),
DiffusionCapabilityDefaultEdit::CAPABILITY => array( DiffusionDefaultEditCapability::CAPABILITY => array(
'default' => PhabricatorPolicies::POLICY_ADMIN, 'default' => PhabricatorPolicies::POLICY_ADMIN,
), ),
DiffusionCapabilityDefaultPush::CAPABILITY => array(), DiffusionDefaultPushCapability::CAPABILITY => array(),
DiffusionCapabilityCreateRepositories::CAPABILITY => array( DiffusionCreateRepositoriesCapability::CAPABILITY => array(
'default' => PhabricatorPolicies::POLICY_ADMIN, 'default' => PhabricatorPolicies::POLICY_ADMIN,
), ),
); );

View file

@ -1,6 +1,6 @@
<?php <?php
final class DiffusionCapabilityCreateRepositories final class DiffusionCreateRepositoriesCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'diffusion.create'; const CAPABILITY = 'diffusion.create';

View file

@ -1,7 +1,6 @@
<?php <?php
final class DiffusionCapabilityDefaultEdit final class DiffusionDefaultEditCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'diffusion.default.edit'; const CAPABILITY = 'diffusion.default.edit';

View file

@ -1,7 +1,6 @@
<?php <?php
final class DiffusionCapabilityDefaultPush final class DiffusionDefaultPushCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'diffusion.default.push'; const CAPABILITY = 'diffusion.default.push';

View file

@ -1,7 +1,6 @@
<?php <?php
final class DiffusionCapabilityDefaultView final class DiffusionDefaultViewCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'diffusion.default.view'; const CAPABILITY = 'diffusion.default.view';

View file

@ -1,7 +1,6 @@
<?php <?php
final class DiffusionCapabilityPush final class DiffusionPushCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'diffusion.push'; const CAPABILITY = 'diffusion.push';

View file

@ -38,7 +38,7 @@ final class DiffusionRepositoryCreateController
case 'import': case 'import':
case 'create': case 'create':
$this->requireApplicationCapability( $this->requireApplicationCapability(
DiffusionCapabilityCreateRepositories::CAPABILITY); DiffusionCreateRepositoriesCapability::CAPABILITY);
$cancel_uri = $this->getApplicationURI('new/'); $cancel_uri = $this->getApplicationURI('new/');
break; break;
@ -671,7 +671,7 @@ final class DiffusionRepositoryCreateController
$push_policy = id(new AphrontFormPolicyControl()) $push_policy = id(new AphrontFormPolicyControl())
->setUser($viewer) ->setUser($viewer)
->setCapability(DiffusionCapabilityPush::CAPABILITY) ->setCapability(DiffusionPushCapability::CAPABILITY)
->setPolicyObject($repository) ->setPolicyObject($repository)
->setPolicies($policies) ->setPolicies($policies)
->setName('pushPolicy'); ->setName('pushPolicy');
@ -849,5 +849,4 @@ final class DiffusionRepositoryCreateController
return $this->repository; return $this->repository;
} }
} }

View file

@ -372,7 +372,7 @@ final class DiffusionRepositoryEditMainController
$descriptions[PhabricatorPolicyCapability::CAN_EDIT]); $descriptions[PhabricatorPolicyCapability::CAN_EDIT]);
$pushable = $repository->isHosted() $pushable = $repository->isHosted()
? $descriptions[DiffusionCapabilityPush::CAPABILITY] ? $descriptions[DiffusionPushCapability::CAPABILITY]
: phutil_tag('em', array(), pht('Not a Hosted Repository')); : phutil_tag('em', array(), pht('Not a Hosted Repository'));
$view->addProperty(pht('Pushable By'), $pushable); $view->addProperty(pht('Pushable By'), $pushable);

View file

@ -41,7 +41,7 @@ final class DiffusionRepositoryListController extends DiffusionController {
$crumbs = parent::buildApplicationCrumbs(); $crumbs = parent::buildApplicationCrumbs();
$can_create = $this->hasApplicationCapability( $can_create = $this->hasApplicationCapability(
DiffusionCapabilityCreateRepositories::CAPABILITY); DiffusionCreateRepositoriesCapability::CAPABILITY);
$crumbs->addAction( $crumbs->addAction(
id(new PHUIListItemView()) id(new PHUIListItemView())

View file

@ -1,14 +1,13 @@
<?php <?php
final class DiffusionRepositoryNewController final class DiffusionRepositoryNewController extends DiffusionController {
extends DiffusionController {
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();
$viewer = $request->getUser(); $viewer = $request->getUser();
$this->requireApplicationCapability( $this->requireApplicationCapability(
DiffusionCapabilityCreateRepositories::CAPABILITY); DiffusionCreateRepositoriesCapability::CAPABILITY);
if ($request->isFormPost()) { if ($request->isFormPost()) {
if ($request->getStr('type')) { if ($request->getStr('type')) {

View file

@ -144,7 +144,7 @@ final class DiffusionServeController extends DiffusionController {
$can_push = PhabricatorPolicyFilter::hasCapability( $can_push = PhabricatorPolicyFilter::hasCapability(
$viewer, $viewer,
$repository, $repository,
DiffusionCapabilityPush::CAPABILITY); DiffusionPushCapability::CAPABILITY);
if (!$can_push) { if (!$can_push) {
if ($viewer->isLoggedIn()) { if ($viewer->isLoggedIn()) {
return new PhabricatorVCSResponse( return new PhabricatorVCSResponse(

View file

@ -118,7 +118,7 @@ abstract class DiffusionSSHWorkflow extends PhabricatorSSHWorkflow {
$can_push = PhabricatorPolicyFilter::hasCapability( $can_push = PhabricatorPolicyFilter::hasCapability(
$viewer, $viewer,
$repository, $repository,
DiffusionCapabilityPush::CAPABILITY); DiffusionPushCapability::CAPABILITY);
if (!$can_push) { if (!$can_push) {
throw new Exception( throw new Exception(
pht('You do not have permission to push to this repository.')); pht('You do not have permission to push to this repository.'));

View file

@ -67,11 +67,11 @@ final class PhabricatorDrydockApplication extends PhabricatorApplication {
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
DrydockCapabilityDefaultView::CAPABILITY => array(), DrydockDefaultViewCapability::CAPABILITY => array(),
DrydockCapabilityDefaultEdit::CAPABILITY => array( DrydockDefaultEditCapability::CAPABILITY => array(
'default' => PhabricatorPolicies::POLICY_ADMIN, 'default' => PhabricatorPolicies::POLICY_ADMIN,
), ),
DrydockCapabilityCreateBlueprints::CAPABILITY => array( DrydockCreateBlueprintsCapability::CAPABILITY => array(
'default' => PhabricatorPolicies::POLICY_ADMIN, 'default' => PhabricatorPolicies::POLICY_ADMIN,
), ),
); );

View file

@ -1,6 +1,6 @@
<?php <?php
final class DrydockCapabilityCreateBlueprints final class DrydockCreateBlueprintsCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'drydock.blueprint.create'; const CAPABILITY = 'drydock.blueprint.create';

View file

@ -1,7 +1,6 @@
<?php <?php
final class DrydockCapabilityDefaultEdit final class DrydockDefaultEditCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'drydock.default.edit'; const CAPABILITY = 'drydock.default.edit';

View file

@ -1,7 +1,6 @@
<?php <?php
final class DrydockCapabilityDefaultView final class DrydockDefaultViewCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'drydock.default.view'; const CAPABILITY = 'drydock.default.view';

View file

@ -8,7 +8,7 @@ final class DrydockBlueprintCreateController
$viewer = $request->getUser(); $viewer = $request->getUser();
$this->requireApplicationCapability( $this->requireApplicationCapability(
DrydockCapabilityCreateBlueprints::CAPABILITY); DrydockCreateBlueprintsCapability::CAPABILITY);
$implementations = $implementations =
DrydockBlueprintImplementation::getAllBlueprintImplementations(); DrydockBlueprintImplementation::getAllBlueprintImplementations();

View file

@ -30,7 +30,7 @@ final class DrydockBlueprintEditController extends DrydockBlueprintController {
$cancel_uri = $this->getApplicationURI('blueprint/'.$this->id.'/'); $cancel_uri = $this->getApplicationURI('blueprint/'.$this->id.'/');
} else { } else {
$this->requireApplicationCapability( $this->requireApplicationCapability(
DrydockCapabilityCreateBlueprints::CAPABILITY); DrydockCreateBlueprintsCapability::CAPABILITY);
$class = $request->getStr('class'); $class = $request->getStr('class');

View file

@ -24,7 +24,7 @@ final class DrydockBlueprintListController extends DrydockBlueprintController {
public function buildApplicationCrumbs() { public function buildApplicationCrumbs() {
$can_create = $this->hasApplicationCapability( $can_create = $this->hasApplicationCapability(
DrydockCapabilityCreateBlueprints::CAPABILITY); DrydockCreateBlueprintsCapability::CAPABILITY);
$crumbs = parent::buildApplicationCrumbs(); $crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction( $crumbs->addAction(

View file

@ -18,9 +18,9 @@ final class DrydockBlueprint extends DrydockDAO
->executeOne(); ->executeOne();
$view_policy = $app->getPolicy( $view_policy = $app->getPolicy(
DrydockCapabilityDefaultView::CAPABILITY); DrydockDefaultViewCapability::CAPABILITY);
$edit_policy = $app->getPolicy( $edit_policy = $app->getPolicy(
DrydockCapabilityDefaultEdit::CAPABILITY); DrydockDefaultEditCapability::CAPABILITY);
return id(new DrydockBlueprint()) return id(new DrydockBlueprint())
->setViewPolicy($view_policy) ->setViewPolicy($view_policy)

View file

@ -83,7 +83,7 @@ final class PhabricatorHarbormasterApplication extends PhabricatorApplication {
public function getCustomCapabilities() { public function getCustomCapabilities() {
return array( return array(
HarbormasterCapabilityManagePlans::CAPABILITY => array( HarbormasterManagePlansCapability::CAPABILITY => array(
'caption' => pht('Can create and manage build plans.'), 'caption' => pht('Can create and manage build plans.'),
'default' => PhabricatorPolicies::POLICY_ADMIN, 'default' => PhabricatorPolicies::POLICY_ADMIN,
), ),

View file

@ -1,6 +1,6 @@
<?php <?php
final class HarbormasterCapabilityManagePlans final class HarbormasterManagePlansCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'harbormaster.plans'; const CAPABILITY = 'harbormaster.plans';

View file

@ -14,7 +14,7 @@ final class HarbormasterPlanDisableController
$viewer = $request->getUser(); $viewer = $request->getUser();
$this->requireApplicationCapability( $this->requireApplicationCapability(
HarbormasterCapabilityManagePlans::CAPABILITY); HarbormasterManagePlansCapability::CAPABILITY);
$plan = id(new HarbormasterBuildPlanQuery()) $plan = id(new HarbormasterBuildPlanQuery())
->setViewer($viewer) ->setViewer($viewer)

View file

@ -1,7 +1,6 @@
<?php <?php
final class HarbormasterPlanEditController final class HarbormasterPlanEditController extends HarbormasterPlanController {
extends HarbormasterPlanController {
private $id; private $id;
@ -14,7 +13,7 @@ final class HarbormasterPlanEditController
$viewer = $request->getUser(); $viewer = $request->getUser();
$this->requireApplicationCapability( $this->requireApplicationCapability(
HarbormasterCapabilityManagePlans::CAPABILITY); HarbormasterManagePlansCapability::CAPABILITY);
if ($this->id) { if ($this->id) {
$plan = id(new HarbormasterBuildPlanQuery()) $plan = id(new HarbormasterBuildPlanQuery())

View file

@ -15,7 +15,7 @@ final class HarbormasterPlanOrderController extends HarbormasterController {
$request->validateCSRF(); $request->validateCSRF();
$this->requireApplicationCapability( $this->requireApplicationCapability(
HarbormasterCapabilityManagePlans::CAPABILITY); HarbormasterManagePlansCapability::CAPABILITY);
$plan = id(new HarbormasterBuildPlanQuery()) $plan = id(new HarbormasterBuildPlanQuery())
->setViewer($user) ->setViewer($user)

View file

@ -1,7 +1,6 @@
<?php <?php
final class HarbormasterPlanRunController final class HarbormasterPlanRunController extends HarbormasterController {
extends HarbormasterController {
private $id; private $id;
@ -14,7 +13,7 @@ final class HarbormasterPlanRunController
$viewer = $request->getUser(); $viewer = $request->getUser();
$this->requireApplicationCapability( $this->requireApplicationCapability(
HarbormasterCapabilityManagePlans::CAPABILITY); HarbormasterManagePlansCapability::CAPABILITY);
$plan_id = $this->id; $plan_id = $this->id;
$plan = id(new HarbormasterBuildPlanQuery()) $plan = id(new HarbormasterBuildPlanQuery())

View file

@ -1,7 +1,6 @@
<?php <?php
final class HarbormasterPlanViewController final class HarbormasterPlanViewController extends HarbormasterPlanController {
extends HarbormasterPlanController {
private $id; private $id;
@ -85,7 +84,7 @@ final class HarbormasterPlanViewController
->execute(); ->execute();
$can_edit = $this->hasApplicationCapability( $can_edit = $this->hasApplicationCapability(
HarbormasterCapabilityManagePlans::CAPABILITY); HarbormasterManagePlansCapability::CAPABILITY);
$i = 1; $i = 1;
$step_list = id(new PHUIObjectItemListView()) $step_list = id(new PHUIObjectItemListView())
@ -215,7 +214,7 @@ final class HarbormasterPlanViewController
->setObjectURI($this->getApplicationURI("plan/{$id}/")); ->setObjectURI($this->getApplicationURI("plan/{$id}/"));
$can_edit = $this->hasApplicationCapability( $can_edit = $this->hasApplicationCapability(
HarbormasterCapabilityManagePlans::CAPABILITY); HarbormasterManagePlansCapability::CAPABILITY);
$list->addAction( $list->addAction(
id(new PhabricatorActionView()) id(new PhabricatorActionView())

View file

@ -1,7 +1,6 @@
<?php <?php
final class HarbormasterStepAddController final class HarbormasterStepAddController extends HarbormasterController {
extends HarbormasterController {
private $id; private $id;
@ -14,12 +13,12 @@ final class HarbormasterStepAddController
$viewer = $request->getUser(); $viewer = $request->getUser();
$this->requireApplicationCapability( $this->requireApplicationCapability(
HarbormasterCapabilityManagePlans::CAPABILITY); HarbormasterManagePlansCapability::CAPABILITY);
$plan = id(new HarbormasterBuildPlanQuery()) $plan = id(new HarbormasterBuildPlanQuery())
->setViewer($viewer) ->setViewer($viewer)
->withIDs(array($this->id)) ->withIDs(array($this->id))
->executeOne(); ->executeOne();
if (!$plan) { if (!$plan) {
return new Aphront404Response(); return new Aphront404Response();
} }
@ -31,8 +30,7 @@ final class HarbormasterStepAddController
if ($request->isFormPost()) { if ($request->isFormPost()) {
$class = $request->getStr('class'); $class = $request->getStr('class');
if (!HarbormasterBuildStepImplementation::getImplementation($class)) { if (!HarbormasterBuildStepImplementation::getImplementation($class)) {
$errors[] = pht( $errors[] = pht('Choose the type of build step you want to add.');
'Choose the type of build step you want to add.');
} }
if (!$errors) { if (!$errors) {
$new_uri = $this->getApplicationURI("step/new/{$plan_id}/{$class}/"); $new_uri = $this->getApplicationURI("step/new/{$plan_id}/{$class}/");

View file

@ -1,7 +1,6 @@
<?php <?php
final class HarbormasterStepDeleteController final class HarbormasterStepDeleteController extends HarbormasterController {
extends HarbormasterController {
private $id; private $id;
@ -14,7 +13,7 @@ final class HarbormasterStepDeleteController
$viewer = $request->getUser(); $viewer = $request->getUser();
$this->requireApplicationCapability( $this->requireApplicationCapability(
HarbormasterCapabilityManagePlans::CAPABILITY); HarbormasterManagePlansCapability::CAPABILITY);
$id = $this->id; $id = $this->id;

View file

@ -1,7 +1,6 @@
<?php <?php
final class HarbormasterStepEditController final class HarbormasterStepEditController extends HarbormasterController {
extends HarbormasterController {
private $id; private $id;
private $planID; private $planID;
@ -18,7 +17,7 @@ final class HarbormasterStepEditController
$viewer = $request->getUser(); $viewer = $request->getUser();
$this->requireApplicationCapability( $this->requireApplicationCapability(
HarbormasterCapabilityManagePlans::CAPABILITY); HarbormasterManagePlansCapability::CAPABILITY);
if ($this->id) { if ($this->id) {
$step = id(new HarbormasterBuildStepQuery()) $step = id(new HarbormasterBuildStepQuery())
@ -200,5 +199,4 @@ final class HarbormasterStepEditController
->appendChild($form); ->appendChild($form);
} }
} }

View file

@ -63,7 +63,7 @@ final class PhabricatorHeraldApplication extends PhabricatorApplication {
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
HeraldCapabilityManageGlobalRules::CAPABILITY => array( HeraldManageGlobalRulesCapability::CAPABILITY => array(
'caption' => pht('Global rules can bypass access controls.'), 'caption' => pht('Global rules can bypass access controls.'),
'default' => PhabricatorPolicies::POLICY_ADMIN, 'default' => PhabricatorPolicies::POLICY_ADMIN,
), ),

View file

@ -1,6 +1,6 @@
<?php <?php
final class HeraldCapabilityManageGlobalRules final class HeraldManageGlobalRulesCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'herald.global'; const CAPABILITY = 'herald.global';

View file

@ -30,7 +30,7 @@ final class HeraldDisableController extends HeraldController {
if ($rule->isGlobalRule()) { if ($rule->isGlobalRule()) {
$this->requireApplicationCapability( $this->requireApplicationCapability(
HeraldCapabilityManageGlobalRules::CAPABILITY); HeraldManageGlobalRulesCapability::CAPABILITY);
} }
$view_uri = $this->getApplicationURI("rule/{$id}/"); $view_uri = $this->getApplicationURI("rule/{$id}/");

View file

@ -251,7 +251,7 @@ final class HeraldNewController extends HeraldController {
)) + $rule_type_map; )) + $rule_type_map;
list($can_global, $global_link) = $this->explainApplicationCapability( list($can_global, $global_link) = $this->explainApplicationCapability(
HeraldCapabilityManageGlobalRules::CAPABILITY, HeraldManageGlobalRulesCapability::CAPABILITY,
pht('You have permission to create and manage global rules.'), pht('You have permission to create and manage global rules.'),
pht('You do not have permission to create or manage global rules.')); pht('You do not have permission to create or manage global rules.'));
@ -313,4 +313,5 @@ final class HeraldNewController extends HeraldController {
return $radio; return $radio;
} }
} }

View file

@ -10,7 +10,6 @@ final class HeraldRuleController extends HeraldController {
} }
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();
$user = $request->getUser(); $user = $request->getUser();
@ -83,7 +82,7 @@ final class HeraldRuleController extends HeraldController {
if ($rule->isGlobalRule()) { if ($rule->isGlobalRule()) {
$this->requireApplicationCapability( $this->requireApplicationCapability(
HeraldCapabilityManageGlobalRules::CAPABILITY); HeraldManageGlobalRulesCapability::CAPABILITY);
} }
$adapter = HeraldAdapter::getAdapterForContentType($rule->getContentType()); $adapter = HeraldAdapter::getAdapterForContentType($rule->getContentType());
@ -666,5 +665,4 @@ final class HeraldRuleController extends HeraldController {
return $all_rules; return $all_rules;
} }
} }

View file

@ -223,7 +223,7 @@ final class HeraldRule extends HeraldDAO
case PhabricatorPolicyCapability::CAN_EDIT: case PhabricatorPolicyCapability::CAN_EDIT:
$app = 'PhabricatorHeraldApplication'; $app = 'PhabricatorHeraldApplication';
$herald = PhabricatorApplication::getByClass($app); $herald = PhabricatorApplication::getByClass($app);
$global = HeraldCapabilityManageGlobalRules::CAPABILITY; $global = HeraldManageGlobalRulesCapability::CAPABILITY;
return $herald->getPolicy($global); return $herald->getPolicy($global);
} }
} else if ($this->isObjectRule()) { } else if ($this->isObjectRule()) {

View file

@ -68,9 +68,9 @@ final class PhabricatorLegalpadApplication extends PhabricatorApplication {
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
LegalpadCapabilityCreateDocuments::CAPABILITY => array(), LegalpadCreateDocumentsCapability::CAPABILITY => array(),
LegalpadCapabilityDefaultView::CAPABILITY => array(), LegalpadDefaultViewCapability::CAPABILITY => array(),
LegalpadCapabilityDefaultEdit::CAPABILITY => array(), LegalpadDefaultEditCapability::CAPABILITY => array(),
); );
} }

View file

@ -1,6 +1,6 @@
<?php <?php
final class LegalpadCapabilityCreateDocuments final class LegalpadCreateDocumentsCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'legalpad.create'; const CAPABILITY = 'legalpad.create';

View file

@ -1,7 +1,6 @@
<?php <?php
final class LegalpadCapabilityDefaultEdit final class LegalpadDefaultEditCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'legalpad.default.edit'; const CAPABILITY = 'legalpad.default.edit';

View file

@ -1,7 +1,6 @@
<?php <?php
final class LegalpadCapabilityDefaultView final class LegalpadDefaultViewCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'legalpad.default.view'; const CAPABILITY = 'legalpad.default.view';

View file

@ -16,7 +16,7 @@ final class LegalpadDocumentEditController extends LegalpadController {
$is_create = true; $is_create = true;
$this->requireApplicationCapability( $this->requireApplicationCapability(
LegalpadCapabilityCreateDocuments::CAPABILITY); LegalpadCreateDocumentsCapability::CAPABILITY);
$document = LegalpadDocument::initializeNewDocument($user); $document = LegalpadDocument::initializeNewDocument($user);
$body = id(new LegalpadDocumentBody()) $body = id(new LegalpadDocumentBody())

View file

@ -26,7 +26,7 @@ final class LegalpadDocumentListController extends LegalpadController {
$crumbs = parent::buildApplicationCrumbs(); $crumbs = parent::buildApplicationCrumbs();
$can_create = $this->hasApplicationCapability( $can_create = $this->hasApplicationCapability(
LegalpadCapabilityCreateDocuments::CAPABILITY); LegalpadCreateDocumentsCapability::CAPABILITY);
$crumbs->addAction( $crumbs->addAction(
id(new PHUIListItemView()) id(new PHUIListItemView())

View file

@ -33,8 +33,8 @@ final class LegalpadDocument extends LegalpadDAO
->withClasses(array('PhabricatorLegalpadApplication')) ->withClasses(array('PhabricatorLegalpadApplication'))
->executeOne(); ->executeOne();
$view_policy = $app->getPolicy(LegalpadCapabilityDefaultView::CAPABILITY); $view_policy = $app->getPolicy(LegalpadDefaultViewCapability::CAPABILITY);
$edit_policy = $app->getPolicy(LegalpadCapabilityDefaultEdit::CAPABILITY); $edit_policy = $app->getPolicy(LegalpadDefaultEditCapability::CAPABILITY);
return id(new LegalpadDocument()) return id(new LegalpadDocument())
->setVersions(0) ->setVersions(0)

View file

@ -50,7 +50,7 @@ final class PhabricatorMacroApplication extends PhabricatorApplication {
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
PhabricatorMacroCapabilityManage::CAPABILITY => array( PhabricatorMacroManageCapability::CAPABILITY => array(
'caption' => pht('Allows creating and editing macros.'), 'caption' => pht('Allows creating and editing macros.'),
), ),
); );

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorMacroCapabilityManage final class PhabricatorMacroManageCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'macro.manage'; const CAPABILITY = 'macro.manage';

View file

@ -1,7 +1,6 @@
<?php <?php
final class PhabricatorMacroAudioController final class PhabricatorMacroAudioController extends PhabricatorMacroController {
extends PhabricatorMacroController {
private $id; private $id;
@ -10,9 +9,8 @@ final class PhabricatorMacroAudioController
} }
public function processRequest() { public function processRequest() {
$this->requireApplicationCapability( $this->requireApplicationCapability(
PhabricatorMacroCapabilityManage::CAPABILITY); PhabricatorMacroManageCapability::CAPABILITY);
$request = $this->getRequest(); $request = $this->getRequest();
$viewer = $request->getUser(); $viewer = $request->getUser();
@ -157,4 +155,5 @@ final class PhabricatorMacroAudioController
'title' => $title, 'title' => $title,
)); ));
} }
} }

View file

@ -1,7 +1,6 @@
<?php <?php
abstract class PhabricatorMacroController abstract class PhabricatorMacroController extends PhabricatorController {
extends PhabricatorController {
protected function buildSideNavView($for_app = false) { protected function buildSideNavView($for_app = false) {
$nav = new AphrontSideNavFilterView(); $nav = new AphrontSideNavFilterView();
@ -29,7 +28,7 @@ abstract class PhabricatorMacroController
$crumbs = parent::buildApplicationCrumbs(); $crumbs = parent::buildApplicationCrumbs();
$can_manage = $this->hasApplicationCapability( $can_manage = $this->hasApplicationCapability(
PhabricatorMacroCapabilityManage::CAPABILITY); PhabricatorMacroManageCapability::CAPABILITY);
$crumbs->addAction( $crumbs->addAction(
id(new PHUIListItemView()) id(new PHUIListItemView())

View file

@ -10,9 +10,8 @@ final class PhabricatorMacroDisableController
} }
public function processRequest() { public function processRequest() {
$this->requireApplicationCapability( $this->requireApplicationCapability(
PhabricatorMacroCapabilityManage::CAPABILITY); PhabricatorMacroManageCapability::CAPABILITY);
$request = $this->getRequest(); $request = $this->getRequest();
$user = $request->getUser(); $user = $request->getUser();
@ -55,4 +54,5 @@ final class PhabricatorMacroDisableController
return id(new AphrontDialogResponse())->setDialog($dialog); return id(new AphrontDialogResponse())->setDialog($dialog);
} }
} }

View file

@ -1,7 +1,6 @@
<?php <?php
final class PhabricatorMacroEditController final class PhabricatorMacroEditController extends PhabricatorMacroController {
extends PhabricatorMacroController {
private $id; private $id;
@ -10,9 +9,8 @@ final class PhabricatorMacroEditController
} }
public function processRequest() { public function processRequest() {
$this->requireApplicationCapability( $this->requireApplicationCapability(
PhabricatorMacroCapabilityManage::CAPABILITY); PhabricatorMacroManageCapability::CAPABILITY);
$request = $this->getRequest(); $request = $this->getRequest();
$user = $request->getUser(); $user = $request->getUser();
@ -262,4 +260,5 @@ final class PhabricatorMacroEditController
'title' => $title, 'title' => $title,
)); ));
} }
} }

View file

@ -118,9 +118,8 @@ final class PhabricatorMacroViewController
} }
private function buildActionView(PhabricatorFileImageMacro $macro) { private function buildActionView(PhabricatorFileImageMacro $macro) {
$can_manage = $this->hasApplicationCapability( $can_manage = $this->hasApplicationCapability(
PhabricatorMacroCapabilityManage::CAPABILITY); PhabricatorMacroManageCapability::CAPABILITY);
$request = $this->getRequest(); $request = $this->getRequest();
$view = id(new PhabricatorActionListView()) $view = id(new PhabricatorActionListView())

View file

@ -104,18 +104,18 @@ final class PhabricatorManiphestApplication extends PhabricatorApplication {
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
ManiphestCapabilityDefaultView::CAPABILITY => array( ManiphestDefaultViewCapability::CAPABILITY => array(
'caption' => pht('Default view policy for newly created tasks.'), 'caption' => pht('Default view policy for newly created tasks.'),
), ),
ManiphestCapabilityDefaultEdit::CAPABILITY => array( ManiphestDefaultEditCapability::CAPABILITY => array(
'caption' => pht('Default edit policy for newly created tasks.'), 'caption' => pht('Default edit policy for newly created tasks.'),
), ),
ManiphestCapabilityEditStatus::CAPABILITY => array(), ManiphestEditStatusCapability::CAPABILITY => array(),
ManiphestCapabilityEditAssign::CAPABILITY => array(), ManiphestEditAssignCapability::CAPABILITY => array(),
ManiphestCapabilityEditPolicies::CAPABILITY => array(), ManiphestEditPoliciesCapability::CAPABILITY => array(),
ManiphestCapabilityEditPriority::CAPABILITY => array(), ManiphestEditPriorityCapability::CAPABILITY => array(),
ManiphestCapabilityEditProjects::CAPABILITY => array(), ManiphestEditProjectsCapability::CAPABILITY => array(),
ManiphestCapabilityBulkEdit::CAPABILITY => array(), ManiphestBulkEditCapability::CAPABILITY => array(),
); );
} }

View file

@ -1,7 +1,6 @@
<?php <?php
final class ManiphestCapabilityBulkEdit final class ManiphestBulkEditCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'maniphest.edit.bulk'; const CAPABILITY = 'maniphest.edit.bulk';

View file

@ -1,7 +1,6 @@
<?php <?php
final class ManiphestCapabilityDefaultEdit final class ManiphestDefaultEditCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'maniphest.default.edit'; const CAPABILITY = 'maniphest.default.edit';

View file

@ -1,7 +1,6 @@
<?php <?php
final class ManiphestCapabilityDefaultView final class ManiphestDefaultViewCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'maniphest.default.view'; const CAPABILITY = 'maniphest.default.view';

View file

@ -1,7 +1,6 @@
<?php <?php
final class ManiphestCapabilityEditAssign final class ManiphestEditAssignCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'maniphest.edit.assign'; const CAPABILITY = 'maniphest.edit.assign';

View file

@ -1,6 +1,6 @@
<?php <?php
final class ManiphestCapabilityEditPolicies final class ManiphestEditPoliciesCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'maniphest.edit.policies'; const CAPABILITY = 'maniphest.edit.policies';

View file

@ -1,6 +1,6 @@
<?php <?php
final class ManiphestCapabilityEditPriority final class ManiphestEditPriorityCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'maniphest.edit.priority'; const CAPABILITY = 'maniphest.edit.priority';

View file

@ -1,6 +1,6 @@
<?php <?php
final class ManiphestCapabilityEditProjects final class ManiphestEditProjectsCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'maniphest.edit.projects'; const CAPABILITY = 'maniphest.edit.projects';

View file

@ -1,7 +1,6 @@
<?php <?php
final class ManiphestCapabilityEditStatus final class ManiphestEditStatusCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'maniphest.edit.status'; const CAPABILITY = 'maniphest.edit.status';

View file

@ -4,7 +4,7 @@ final class ManiphestBatchEditController extends ManiphestController {
public function processRequest() { public function processRequest() {
$this->requireApplicationCapability( $this->requireApplicationCapability(
ManiphestCapabilityBulkEdit::CAPABILITY); ManiphestBulkEditCapability::CAPABILITY);
$request = $this->getRequest(); $request = $this->getRequest();
$user = $request->getUser(); $user = $request->getUser();

View file

@ -13,7 +13,6 @@ final class ManiphestTaskDetailController extends ManiphestController {
} }
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();
$user = $request->getUser(); $user = $request->getUser();
@ -162,13 +161,13 @@ final class ManiphestTaskDetailController extends ManiphestController {
$requires = array( $requires = array(
ManiphestTransaction::TYPE_OWNER => ManiphestTransaction::TYPE_OWNER =>
ManiphestCapabilityEditAssign::CAPABILITY, ManiphestEditAssignCapability::CAPABILITY,
ManiphestTransaction::TYPE_PRIORITY => ManiphestTransaction::TYPE_PRIORITY =>
ManiphestCapabilityEditPriority::CAPABILITY, ManiphestEditPriorityCapability::CAPABILITY,
ManiphestTransaction::TYPE_PROJECTS => ManiphestTransaction::TYPE_PROJECTS =>
ManiphestCapabilityEditProjects::CAPABILITY, ManiphestEditProjectsCapability::CAPABILITY,
ManiphestTransaction::TYPE_STATUS => ManiphestTransaction::TYPE_STATUS =>
ManiphestCapabilityEditStatus::CAPABILITY, ManiphestEditStatusCapability::CAPABILITY,
); );
foreach ($transaction_types as $type => $name) { foreach ($transaction_types as $type => $name) {

View file

@ -9,21 +9,20 @@ final class ManiphestTaskEditController extends ManiphestController {
} }
public function processRequest() { public function processRequest() {
$request = $this->getRequest(); $request = $this->getRequest();
$user = $request->getUser(); $user = $request->getUser();
$response_type = $request->getStr('responseType', 'task'); $response_type = $request->getStr('responseType', 'task');
$can_edit_assign = $this->hasApplicationCapability( $can_edit_assign = $this->hasApplicationCapability(
ManiphestCapabilityEditAssign::CAPABILITY); ManiphestEditAssignCapability::CAPABILITY);
$can_edit_policies = $this->hasApplicationCapability( $can_edit_policies = $this->hasApplicationCapability(
ManiphestCapabilityEditPolicies::CAPABILITY); ManiphestEditPoliciesCapability::CAPABILITY);
$can_edit_priority = $this->hasApplicationCapability( $can_edit_priority = $this->hasApplicationCapability(
ManiphestCapabilityEditPriority::CAPABILITY); ManiphestEditPriorityCapability::CAPABILITY);
$can_edit_projects = $this->hasApplicationCapability( $can_edit_projects = $this->hasApplicationCapability(
ManiphestCapabilityEditProjects::CAPABILITY); ManiphestEditProjectsCapability::CAPABILITY);
$can_edit_status = $this->hasApplicationCapability( $can_edit_status = $this->hasApplicationCapability(
ManiphestCapabilityEditStatus::CAPABILITY); ManiphestEditStatusCapability::CAPABILITY);
$parent_task = null; $parent_task = null;
$template_id = null; $template_id = null;
@ -750,4 +749,5 @@ final class ManiphestTaskEditController extends ManiphestController {
'pageObjects' => $page_objects, 'pageObjects' => $page_objects,
)); ));
} }
} }

View file

@ -432,15 +432,15 @@ final class ManiphestTransactionEditor
$app_capability_map = array( $app_capability_map = array(
ManiphestTransaction::TYPE_PRIORITY => ManiphestTransaction::TYPE_PRIORITY =>
ManiphestCapabilityEditPriority::CAPABILITY, ManiphestEditPriorityCapability::CAPABILITY,
ManiphestTransaction::TYPE_STATUS => ManiphestTransaction::TYPE_STATUS =>
ManiphestCapabilityEditStatus::CAPABILITY, ManiphestEditStatusCapability::CAPABILITY,
ManiphestTransaction::TYPE_OWNER => ManiphestTransaction::TYPE_OWNER =>
ManiphestCapabilityEditAssign::CAPABILITY, ManiphestEditAssignCapability::CAPABILITY,
PhabricatorTransactions::TYPE_EDIT_POLICY => PhabricatorTransactions::TYPE_EDIT_POLICY =>
ManiphestCapabilityEditPolicies::CAPABILITY, ManiphestEditPoliciesCapability::CAPABILITY,
PhabricatorTransactions::TYPE_VIEW_POLICY => PhabricatorTransactions::TYPE_VIEW_POLICY =>
ManiphestCapabilityEditPolicies::CAPABILITY, ManiphestEditPoliciesCapability::CAPABILITY,
); );
@ -450,7 +450,7 @@ final class ManiphestTransactionEditor
if ($transaction_type == PhabricatorTransactions::TYPE_EDGE) { if ($transaction_type == PhabricatorTransactions::TYPE_EDGE) {
switch ($xaction->getMetadataValue('edge:type')) { switch ($xaction->getMetadataValue('edge:type')) {
case PhabricatorProjectObjectHasProjectEdgeType::EDGECONST: case PhabricatorProjectObjectHasProjectEdgeType::EDGECONST:
$app_capability = ManiphestCapabilityEditProjects::CAPABILITY; $app_capability = ManiphestEditProjectsCapability::CAPABILITY;
break; break;
} }
} else { } else {

View file

@ -539,12 +539,12 @@ final class ManiphestTaskSearchEngine
$can_edit_priority = PhabricatorPolicyFilter::hasCapability( $can_edit_priority = PhabricatorPolicyFilter::hasCapability(
$viewer, $viewer,
$this->getApplication(), $this->getApplication(),
ManiphestCapabilityEditPriority::CAPABILITY); ManiphestEditPriorityCapability::CAPABILITY);
$can_bulk_edit = PhabricatorPolicyFilter::hasCapability( $can_bulk_edit = PhabricatorPolicyFilter::hasCapability(
$viewer, $viewer,
$this->getApplication(), $this->getApplication(),
ManiphestCapabilityBulkEdit::CAPABILITY); ManiphestBulkEditCapability::CAPABILITY);
} }
return id(new ManiphestTaskResultListView()) return id(new ManiphestTaskResultListView())

View file

@ -45,8 +45,8 @@ final class ManiphestTask extends ManiphestDAO
->withClasses(array('PhabricatorManiphestApplication')) ->withClasses(array('PhabricatorManiphestApplication'))
->executeOne(); ->executeOne();
$view_policy = $app->getPolicy(ManiphestCapabilityDefaultView::CAPABILITY); $view_policy = $app->getPolicy(ManiphestDefaultViewCapability::CAPABILITY);
$edit_policy = $app->getPolicy(ManiphestCapabilityDefaultEdit::CAPABILITY); $edit_policy = $app->getPolicy(ManiphestDefaultEditCapability::CAPABILITY);
return id(new ManiphestTask()) return id(new ManiphestTask())
->setStatus(ManiphestTaskStatus::getDefaultStatus()) ->setStatus(ManiphestTaskStatus::getDefaultStatus())

View file

@ -64,13 +64,13 @@ final class PhabricatorNuanceApplication extends PhabricatorApplication {
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
NuanceCapabilitySourceDefaultView::CAPABILITY => array( NuanceSourceDefaultViewCapability::CAPABILITY => array(
'caption' => pht('Default view policy for newly created sources.'), 'caption' => pht('Default view policy for newly created sources.'),
), ),
NuanceCapabilitySourceDefaultEdit::CAPABILITY => array( NuanceSourceDefaultEditCapability::CAPABILITY => array(
'caption' => pht('Default edit policy for newly created sources.'), 'caption' => pht('Default edit policy for newly created sources.'),
), ),
NuanceCapabilitySourceManage::CAPABILITY => array(), NuanceSourceManageCapability::CAPABILITY => array(),
); );
} }

View file

@ -1,6 +1,6 @@
<?php <?php
final class NuanceCapabilitySourceDefaultEdit final class NuanceSourceDefaultEditCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'nuance.source.default.edit'; const CAPABILITY = 'nuance.source.default.edit';

View file

@ -1,6 +1,6 @@
<?php <?php
final class NuanceCapabilitySourceDefaultView final class NuanceSourceDefaultViewCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'nuance.source.default.view'; const CAPABILITY = 'nuance.source.default.view';

View file

@ -1,7 +1,6 @@
<?php <?php
final class NuanceCapabilitySourceManage final class NuanceSourceManageCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'nuance.source.manage'; const CAPABILITY = 'nuance.source.manage';

View file

@ -18,7 +18,7 @@ final class NuanceSourceEditController extends NuanceController {
public function processRequest() { public function processRequest() {
$can_edit = $this->requireApplicationCapability( $can_edit = $this->requireApplicationCapability(
NuanceCapabilitySourceManage::CAPABILITY); NuanceSourceManageCapability::CAPABILITY);
$request = $this->getRequest(); $request = $this->getRequest();
$user = $request->getUser(); $user = $request->getUser();

View file

@ -41,9 +41,9 @@ final class NuanceSource extends NuanceDAO
->executeOne(); ->executeOne();
$view_policy = $app->getPolicy( $view_policy = $app->getPolicy(
NuanceCapabilitySourceDefaultView::CAPABILITY); NuanceSourceDefaultViewCapability::CAPABILITY);
$edit_policy = $app->getPolicy( $edit_policy = $app->getPolicy(
NuanceCapabilitySourceDefaultEdit::CAPABILITY); NuanceSourceDefaultEditCapability::CAPABILITY);
$definitions = NuanceSourceDefinition::getAllDefinitions(); $definitions = NuanceSourceDefinition::getAllDefinitions();
$lucky_definition = head($definitions); $lucky_definition = head($definitions);

View file

@ -58,7 +58,7 @@ final class PhabricatorOAuthServerApplication extends PhabricatorApplication {
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
PhabricatorOAuthServerCapabilityCreateClients::CAPABILITY => array( PhabricatorOAuthServerCreateClientsCapability::CAPABILITY => array(
'default' => PhabricatorPolicies::POLICY_ADMIN, 'default' => PhabricatorPolicies::POLICY_ADMIN,
), ),
); );

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorOAuthServerCapabilityCreateClients final class PhabricatorOAuthServerCreateClientsCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'oauthserver.create'; const CAPABILITY = 'oauthserver.create';

View file

@ -29,7 +29,7 @@ final class PhabricatorOAuthClientEditController
$is_new = false; $is_new = false;
} else { } else {
$this->requireApplicationCapability( $this->requireApplicationCapability(
PhabricatorOAuthServerCapabilityCreateClients::CAPABILITY); PhabricatorOAuthServerCreateClientsCapability::CAPABILITY);
$client = PhabricatorOAuthServerClient::initializeNewClient($viewer); $client = PhabricatorOAuthServerClient::initializeNewClient($viewer);

View file

@ -47,7 +47,7 @@ final class PhabricatorPasteApplication extends PhabricatorApplication {
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
PasteCapabilityDefaultView::CAPABILITY => array( PasteDefaultViewCapability::CAPABILITY => array(
'caption' => pht('Default view policy for newly created pastes.'), 'caption' => pht('Default view policy for newly created pastes.'),
), ),
); );

View file

@ -1,7 +1,6 @@
<?php <?php
final class PasteCapabilityDefaultView final class PasteDefaultViewCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'paste.default.view'; const CAPABILITY = 'paste.default.view';

View file

@ -25,7 +25,7 @@ final class PhabricatorPaste extends PhabricatorPasteDAO
->withClasses(array('PhabricatorPasteApplication')) ->withClasses(array('PhabricatorPasteApplication'))
->executeOne(); ->executeOne();
$view_policy = $app->getPolicy(PasteCapabilityDefaultView::CAPABILITY); $view_policy = $app->getPolicy(PasteDefaultViewCapability::CAPABILITY);
return id(new PhabricatorPaste()) return id(new PhabricatorPaste())
->setTitle('') ->setTitle('')

View file

@ -76,10 +76,9 @@ final class PhabricatorPeopleApplication extends PhabricatorApplication {
); );
} }
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
PeopleCapabilityBrowseUserDirectory::CAPABILITY => array(), PeopleBrowseUserDirectoryCapability::CAPABILITY => array(),
); );
} }

View file

@ -1,6 +1,6 @@
<?php <?php
final class PeopleCapabilityBrowseUserDirectory final class PeopleBrowseUserDirectoryCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
const CAPABILITY = 'people.browse'; const CAPABILITY = 'people.browse';
@ -18,8 +18,7 @@ final class PeopleCapabilityBrowseUserDirectory
} }
public function describeCapabilityRejection() { public function describeCapabilityRejection() {
return pht( return pht('You do not have permission to browse the user directory.');
'You do not have permission to browse the user directory.');
} }
} }

View file

@ -22,7 +22,7 @@ final class PhabricatorPeopleListController
$viewer = $request->getUser(); $viewer = $request->getUser();
$this->requireApplicationCapability( $this->requireApplicationCapability(
PeopleCapabilityBrowseUserDirectory::CAPABILITY); PeopleBrowseUserDirectoryCapability::CAPABILITY);
$controller = id(new PhabricatorApplicationSearchController($request)) $controller = id(new PhabricatorApplicationSearchController($request))
->setQueryKey($this->key) ->setQueryKey($this->key)

View file

@ -46,7 +46,7 @@ final class PhabricatorPeopleSearchEngine
$can_browse = PhabricatorPolicyFilter::hasCapability( $can_browse = PhabricatorPolicyFilter::hasCapability(
$viewer, $viewer,
$this->getApplication(), $this->getApplication(),
PeopleCapabilityBrowseUserDirectory::CAPABILITY); PeopleBrowseUserDirectoryCapability::CAPABILITY);
if (!$can_browse) { if (!$can_browse) {
$query->withPHIDs(array($viewer->getPHID())); $query->withPHIDs(array($viewer->getPHID()));
} }

View file

@ -72,8 +72,8 @@ final class PhabricatorPholioApplication extends PhabricatorApplication {
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
PholioCapabilityDefaultView::CAPABILITY => array(), PholioDefaultViewCapability::CAPABILITY => array(),
PholioCapabilityDefaultEdit::CAPABILITY => array(), PholioDefaultEditCapability::CAPABILITY => array(),
); );
} }

View file

@ -1,7 +1,6 @@
<?php <?php
final class PholioCapabilityDefaultEdit final class PholioDefaultEditCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'pholio.default.edit'; const CAPABILITY = 'pholio.default.edit';

View file

@ -1,7 +1,6 @@
<?php <?php
final class PholioCapabilityDefaultView final class PholioDefaultViewCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'pholio.default.view'; const CAPABILITY = 'pholio.default.view';

View file

@ -35,8 +35,8 @@ final class PholioMock extends PholioDAO
->withClasses(array('PhabricatorPholioApplication')) ->withClasses(array('PhabricatorPholioApplication'))
->executeOne(); ->executeOne();
$view_policy = $app->getPolicy(PholioCapabilityDefaultView::CAPABILITY); $view_policy = $app->getPolicy(PholioDefaultViewCapability::CAPABILITY);
$edit_policy = $app->getPolicy(PholioCapabilityDefaultEdit::CAPABILITY); $edit_policy = $app->getPolicy(PholioDefaultEditCapability::CAPABILITY);
return id(new PholioMock()) return id(new PholioMock())
->setAuthorPHID($actor->getPHID()) ->setAuthorPHID($actor->getPHID())

View file

@ -63,7 +63,7 @@ final class PhabricatorPhragmentApplication extends PhabricatorApplication {
protected function getCustomCapabilities() { protected function getCustomCapabilities() {
return array( return array(
PhragmentCapabilityCanCreate::CAPABILITY => array(), PhragmentCanCreateCapability::CAPABILITY => array(),
); );
} }

View file

@ -1,7 +1,6 @@
<?php <?php
final class PhragmentCapabilityCanCreate final class PhragmentCanCreateCapability extends PhabricatorPolicyCapability {
extends PhabricatorPolicyCapability {
const CAPABILITY = 'phragment.create'; const CAPABILITY = 'phragment.create';

View file

@ -29,7 +29,7 @@ final class PhragmentBrowseController extends PhragmentController {
$crumbs = $this->buildApplicationCrumbsWithPath($parents); $crumbs = $this->buildApplicationCrumbsWithPath($parents);
if ($this->hasApplicationCapability( if ($this->hasApplicationCapability(
PhragmentCapabilityCanCreate::CAPABILITY)) { PhragmentCanCreateCapability::CAPABILITY)) {
$crumbs->addAction( $crumbs->addAction(
id(new PHUIListItemView()) id(new PHUIListItemView())
->setName(pht('Create Fragment')) ->setName(pht('Create Fragment'))

View file

@ -26,7 +26,7 @@ final class PhragmentHistoryController extends PhragmentController {
$crumbs = $this->buildApplicationCrumbsWithPath($parents); $crumbs = $this->buildApplicationCrumbsWithPath($parents);
if ($this->hasApplicationCapability( if ($this->hasApplicationCapability(
PhragmentCapabilityCanCreate::CAPABILITY)) { PhragmentCanCreateCapability::CAPABILITY)) {
$crumbs->addAction( $crumbs->addAction(
id(new PHUIListItemView()) id(new PHUIListItemView())
->setName(pht('Create Fragment')) ->setName(pht('Create Fragment'))

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorPolicyCapabilityCanEdit final class PhabricatorPolicyCanEditCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
public function getCapabilityKey() { public function getCapabilityKey() {

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorPolicyCapabilityCanJoin final class PhabricatorPolicyCanJoinCapability
extends PhabricatorPolicyCapability { extends PhabricatorPolicyCapability {
public function getCapabilityKey() { public function getCapabilityKey() {

Some files were not shown because too many files have changed in this diff Show more