1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 11:42:42 +01:00

Rename PhutilRemarkupRule subclasses

Summary: Ref T5655. Depends on D9993.

Test Plan: See D9993.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5655

Differential Revision: https://secure.phabricator.com/D9994
This commit is contained in:
Joshua Spence 2014-08-05 00:55:43 +10:00
parent c9fe162470
commit f055736eca
40 changed files with 103 additions and 115 deletions

View file

@ -539,11 +539,11 @@ phutil_register_library_map(array(
'DivinerParameterTableView' => 'applications/diviner/view/DivinerParameterTableView.php', 'DivinerParameterTableView' => 'applications/diviner/view/DivinerParameterTableView.php',
'DivinerPublishCache' => 'applications/diviner/cache/DivinerPublishCache.php', 'DivinerPublishCache' => 'applications/diviner/cache/DivinerPublishCache.php',
'DivinerPublisher' => 'applications/diviner/publisher/DivinerPublisher.php', 'DivinerPublisher' => 'applications/diviner/publisher/DivinerPublisher.php',
'DivinerRemarkupRuleSymbol' => 'applications/diviner/markup/DivinerRemarkupRuleSymbol.php',
'DivinerRenderer' => 'applications/diviner/renderer/DivinerRenderer.php', 'DivinerRenderer' => 'applications/diviner/renderer/DivinerRenderer.php',
'DivinerReturnTableView' => 'applications/diviner/view/DivinerReturnTableView.php', 'DivinerReturnTableView' => 'applications/diviner/view/DivinerReturnTableView.php',
'DivinerSectionView' => 'applications/diviner/view/DivinerSectionView.php', 'DivinerSectionView' => 'applications/diviner/view/DivinerSectionView.php',
'DivinerStaticPublisher' => 'applications/diviner/publisher/DivinerStaticPublisher.php', 'DivinerStaticPublisher' => 'applications/diviner/publisher/DivinerStaticPublisher.php',
'DivinerSymbolRemarkupRule' => 'applications/diviner/markup/DivinerSymbolRemarkupRule.php',
'DivinerWorkflow' => 'applications/diviner/workflow/DivinerWorkflow.php', 'DivinerWorkflow' => 'applications/diviner/workflow/DivinerWorkflow.php',
'DoorkeeperBridge' => 'applications/doorkeeper/bridge/DoorkeeperBridge.php', 'DoorkeeperBridge' => 'applications/doorkeeper/bridge/DoorkeeperBridge.php',
'DoorkeeperBridgeAsana' => 'applications/doorkeeper/bridge/DoorkeeperBridgeAsana.php', 'DoorkeeperBridgeAsana' => 'applications/doorkeeper/bridge/DoorkeeperBridgeAsana.php',
@ -1467,6 +1467,7 @@ phutil_register_library_map(array(
'PhabricatorEditor' => 'infrastructure/PhabricatorEditor.php', 'PhabricatorEditor' => 'infrastructure/PhabricatorEditor.php',
'PhabricatorEmailLoginController' => 'applications/auth/controller/PhabricatorEmailLoginController.php', 'PhabricatorEmailLoginController' => 'applications/auth/controller/PhabricatorEmailLoginController.php',
'PhabricatorEmailVerificationController' => 'applications/auth/controller/PhabricatorEmailVerificationController.php', 'PhabricatorEmailVerificationController' => 'applications/auth/controller/PhabricatorEmailVerificationController.php',
'PhabricatorEmbedFileRemarkupRule' => 'applications/files/markup/PhabricatorEmbedFileRemarkupRule.php',
'PhabricatorEmptyQueryException' => 'infrastructure/query/PhabricatorEmptyQueryException.php', 'PhabricatorEmptyQueryException' => 'infrastructure/query/PhabricatorEmptyQueryException.php',
'PhabricatorEnglishTranslation' => 'infrastructure/internationalization/translation/PhabricatorEnglishTranslation.php', 'PhabricatorEnglishTranslation' => 'infrastructure/internationalization/translation/PhabricatorEnglishTranslation.php',
'PhabricatorEnv' => 'infrastructure/env/PhabricatorEnv.php', 'PhabricatorEnv' => 'infrastructure/env/PhabricatorEnv.php',
@ -1614,6 +1615,8 @@ phutil_register_library_map(array(
'PhabricatorHunksManagementMigrateWorkflow' => 'applications/differential/management/PhabricatorHunksManagementMigrateWorkflow.php', 'PhabricatorHunksManagementMigrateWorkflow' => 'applications/differential/management/PhabricatorHunksManagementMigrateWorkflow.php',
'PhabricatorHunksManagementWorkflow' => 'applications/differential/management/PhabricatorHunksManagementWorkflow.php', 'PhabricatorHunksManagementWorkflow' => 'applications/differential/management/PhabricatorHunksManagementWorkflow.php',
'PhabricatorIRCProtocolAdapter' => 'infrastructure/daemon/bot/adapter/PhabricatorIRCProtocolAdapter.php', 'PhabricatorIRCProtocolAdapter' => 'infrastructure/daemon/bot/adapter/PhabricatorIRCProtocolAdapter.php',
'PhabricatorIconRemarkupRule' => 'applications/macro/markup/PhabricatorIconRemarkupRule.php',
'PhabricatorImageMacroRemarkupRule' => 'applications/macro/markup/PhabricatorImageMacroRemarkupRule.php',
'PhabricatorImageTransformer' => 'applications/files/PhabricatorImageTransformer.php', 'PhabricatorImageTransformer' => 'applications/files/PhabricatorImageTransformer.php',
'PhabricatorInfrastructureTestCase' => '__tests__/PhabricatorInfrastructureTestCase.php', 'PhabricatorInfrastructureTestCase' => '__tests__/PhabricatorInfrastructureTestCase.php',
'PhabricatorInlineCommentController' => 'infrastructure/diff/PhabricatorInlineCommentController.php', 'PhabricatorInlineCommentController' => 'infrastructure/diff/PhabricatorInlineCommentController.php',
@ -1704,6 +1707,8 @@ phutil_register_library_map(array(
'PhabricatorMarkupInterface' => 'infrastructure/markup/PhabricatorMarkupInterface.php', 'PhabricatorMarkupInterface' => 'infrastructure/markup/PhabricatorMarkupInterface.php',
'PhabricatorMarkupOneOff' => 'infrastructure/markup/PhabricatorMarkupOneOff.php', 'PhabricatorMarkupOneOff' => 'infrastructure/markup/PhabricatorMarkupOneOff.php',
'PhabricatorMarkupPreviewController' => 'infrastructure/markup/PhabricatorMarkupPreviewController.php', 'PhabricatorMarkupPreviewController' => 'infrastructure/markup/PhabricatorMarkupPreviewController.php',
'PhabricatorMemeRemarkupRule' => 'applications/macro/markup/PhabricatorMemeRemarkupRule.php',
'PhabricatorMentionRemarkupRule' => 'applications/people/markup/PhabricatorMentionRemarkupRule.php',
'PhabricatorMercurialGraphStream' => 'applications/repository/daemon/PhabricatorMercurialGraphStream.php', 'PhabricatorMercurialGraphStream' => 'applications/repository/daemon/PhabricatorMercurialGraphStream.php',
'PhabricatorMetaMTAActor' => 'applications/metamta/query/PhabricatorMetaMTAActor.php', 'PhabricatorMetaMTAActor' => 'applications/metamta/query/PhabricatorMetaMTAActor.php',
'PhabricatorMetaMTAActorQuery' => 'applications/metamta/query/PhabricatorMetaMTAActorQuery.php', 'PhabricatorMetaMTAActorQuery' => 'applications/metamta/query/PhabricatorMetaMTAActorQuery.php',
@ -1787,6 +1792,7 @@ phutil_register_library_map(array(
'PhabricatorObjectMailReceiver' => 'applications/metamta/receiver/PhabricatorObjectMailReceiver.php', 'PhabricatorObjectMailReceiver' => 'applications/metamta/receiver/PhabricatorObjectMailReceiver.php',
'PhabricatorObjectMailReceiverTestCase' => 'applications/metamta/receiver/__tests__/PhabricatorObjectMailReceiverTestCase.php', 'PhabricatorObjectMailReceiverTestCase' => 'applications/metamta/receiver/__tests__/PhabricatorObjectMailReceiverTestCase.php',
'PhabricatorObjectQuery' => 'applications/phid/query/PhabricatorObjectQuery.php', 'PhabricatorObjectQuery' => 'applications/phid/query/PhabricatorObjectQuery.php',
'PhabricatorObjectRemarkupRule' => 'infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php',
'PhabricatorObjectSelectorDialog' => 'view/control/PhabricatorObjectSelectorDialog.php', 'PhabricatorObjectSelectorDialog' => 'view/control/PhabricatorObjectSelectorDialog.php',
'PhabricatorOffsetPagedQuery' => 'infrastructure/query/PhabricatorOffsetPagedQuery.php', 'PhabricatorOffsetPagedQuery' => 'infrastructure/query/PhabricatorOffsetPagedQuery.php',
'PhabricatorOwnerPathQuery' => 'applications/owners/query/PhabricatorOwnerPathQuery.php', 'PhabricatorOwnerPathQuery' => 'applications/owners/query/PhabricatorOwnerPathQuery.php',
@ -1977,20 +1983,13 @@ phutil_register_library_map(array(
'PhabricatorRegistrationProfile' => 'applications/people/storage/PhabricatorRegistrationProfile.php', 'PhabricatorRegistrationProfile' => 'applications/people/storage/PhabricatorRegistrationProfile.php',
'PhabricatorReleephApplication' => 'applications/releeph/application/PhabricatorReleephApplication.php', 'PhabricatorReleephApplication' => 'applications/releeph/application/PhabricatorReleephApplication.php',
'PhabricatorReleephApplicationConfigOptions' => 'applications/releeph/config/PhabricatorReleephApplicationConfigOptions.php', 'PhabricatorReleephApplicationConfigOptions' => 'applications/releeph/config/PhabricatorReleephApplicationConfigOptions.php',
'PhabricatorRemarkupBlockInterpreterCowsay' => 'infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterCowsay.php',
'PhabricatorRemarkupBlockInterpreterFiglet' => 'infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterFiglet.php',
'PhabricatorRemarkupBlockInterpreterGraphviz' => 'infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterGraphviz.php',
'PhabricatorRemarkupControl' => 'view/form/control/PhabricatorRemarkupControl.php', 'PhabricatorRemarkupControl' => 'view/form/control/PhabricatorRemarkupControl.php',
'PhabricatorRemarkupCowsayBlockInterpreter' => 'infrastructure/markup/interpreter/PhabricatorRemarkupCowsayBlockInterpreter.php',
'PhabricatorRemarkupCustomBlockRule' => 'infrastructure/markup/rule/PhabricatorRemarkupCustomBlockRule.php', 'PhabricatorRemarkupCustomBlockRule' => 'infrastructure/markup/rule/PhabricatorRemarkupCustomBlockRule.php',
'PhabricatorRemarkupCustomInlineRule' => 'infrastructure/markup/rule/PhabricatorRemarkupCustomInlineRule.php', 'PhabricatorRemarkupCustomInlineRule' => 'infrastructure/markup/rule/PhabricatorRemarkupCustomInlineRule.php',
'PhabricatorRemarkupExample' => 'applications/uiexample/examples/PhabricatorRemarkupExample.php', 'PhabricatorRemarkupExample' => 'applications/uiexample/examples/PhabricatorRemarkupExample.php',
'PhabricatorRemarkupRuleEmbedFile' => 'applications/files/remarkup/PhabricatorRemarkupRuleEmbedFile.php', 'PhabricatorRemarkupFigletBlockInterpreter' => 'infrastructure/markup/interpreter/PhabricatorRemarkupFigletBlockInterpreter.php',
'PhabricatorRemarkupRuleIcon' => 'applications/macro/remarkup/PhabricatorRemarkupRuleIcon.php', 'PhabricatorRemarkupGraphvizBlockInterpreter' => 'infrastructure/markup/interpreter/PhabricatorRemarkupGraphvizBlockInterpreter.php',
'PhabricatorRemarkupRuleImageMacro' => 'applications/macro/remarkup/PhabricatorRemarkupRuleImageMacro.php',
'PhabricatorRemarkupRuleMeme' => 'applications/macro/remarkup/PhabricatorRemarkupRuleMeme.php',
'PhabricatorRemarkupRuleMention' => 'applications/people/remarkup/PhabricatorRemarkupRuleMention.php',
'PhabricatorRemarkupRuleObject' => 'infrastructure/markup/rule/PhabricatorRemarkupRuleObject.php',
'PhabricatorRemarkupRuleYoutube' => 'infrastructure/markup/rule/PhabricatorRemarkupRuleYoutube.php',
'PhabricatorRepositoriesApplication' => 'applications/repository/application/PhabricatorRepositoriesApplication.php', 'PhabricatorRepositoriesApplication' => 'applications/repository/application/PhabricatorRepositoriesApplication.php',
'PhabricatorRepository' => 'applications/repository/storage/PhabricatorRepository.php', 'PhabricatorRepository' => 'applications/repository/storage/PhabricatorRepository.php',
'PhabricatorRepositoryArcanistProject' => 'applications/repository/storage/PhabricatorRepositoryArcanistProject.php', 'PhabricatorRepositoryArcanistProject' => 'applications/repository/storage/PhabricatorRepositoryArcanistProject.php',
@ -2367,6 +2366,7 @@ phutil_register_library_map(array(
'PhabricatorXHProfProfileView' => 'applications/xhprof/view/PhabricatorXHProfProfileView.php', 'PhabricatorXHProfProfileView' => 'applications/xhprof/view/PhabricatorXHProfProfileView.php',
'PhabricatorXHProfSample' => 'applications/xhprof/storage/PhabricatorXHProfSample.php', 'PhabricatorXHProfSample' => 'applications/xhprof/storage/PhabricatorXHProfSample.php',
'PhabricatorXHProfSampleListController' => 'applications/xhprof/controller/PhabricatorXHProfSampleListController.php', 'PhabricatorXHProfSampleListController' => 'applications/xhprof/controller/PhabricatorXHProfSampleListController.php',
'PhabricatorYoutubeRemarkupRule' => 'infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php',
'PhameBasicBlogSkin' => 'applications/phame/skins/PhameBasicBlogSkin.php', 'PhameBasicBlogSkin' => 'applications/phame/skins/PhameBasicBlogSkin.php',
'PhameBasicTemplateBlogSkin' => 'applications/phame/skins/PhameBasicTemplateBlogSkin.php', 'PhameBasicTemplateBlogSkin' => 'applications/phame/skins/PhameBasicTemplateBlogSkin.php',
'PhameBlog' => 'applications/phame/storage/PhameBlog.php', 'PhameBlog' => 'applications/phame/storage/PhameBlog.php',
@ -2570,7 +2570,7 @@ phutil_register_library_map(array(
'PhrictionListController' => 'applications/phriction/controller/PhrictionListController.php', 'PhrictionListController' => 'applications/phriction/controller/PhrictionListController.php',
'PhrictionMoveController' => 'applications/phriction/controller/PhrictionMoveController.php', 'PhrictionMoveController' => 'applications/phriction/controller/PhrictionMoveController.php',
'PhrictionNewController' => 'applications/phriction/controller/PhrictionNewController.php', 'PhrictionNewController' => 'applications/phriction/controller/PhrictionNewController.php',
'PhrictionRemarkupRule' => 'applications/phriction/remarkup/PhrictionRemarkupRule.php', 'PhrictionRemarkupRule' => 'applications/phriction/markup/PhrictionRemarkupRule.php',
'PhrictionSearchEngine' => 'applications/phriction/query/PhrictionSearchEngine.php', 'PhrictionSearchEngine' => 'applications/phriction/query/PhrictionSearchEngine.php',
'PhrictionSearchIndexer' => 'applications/phriction/search/PhrictionSearchIndexer.php', 'PhrictionSearchIndexer' => 'applications/phriction/search/PhrictionSearchIndexer.php',
'PonderAddAnswerView' => 'applications/ponder/view/PonderAddAnswerView.php', 'PonderAddAnswerView' => 'applications/ponder/view/PonderAddAnswerView.php',
@ -3036,7 +3036,7 @@ phutil_register_library_map(array(
'DifferentialProjectsField' => 'DifferentialCoreCustomField', 'DifferentialProjectsField' => 'DifferentialCoreCustomField',
'DifferentialQueryConduitAPIMethod' => 'DifferentialConduitAPIMethod', 'DifferentialQueryConduitAPIMethod' => 'DifferentialConduitAPIMethod',
'DifferentialQueryDiffsConduitAPIMethod' => 'DifferentialConduitAPIMethod', 'DifferentialQueryDiffsConduitAPIMethod' => 'DifferentialConduitAPIMethod',
'DifferentialRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'DifferentialRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'DifferentialReplyHandler' => 'PhabricatorMailReplyHandler', 'DifferentialReplyHandler' => 'PhabricatorMailReplyHandler',
'DifferentialRepositoryField' => 'DifferentialCoreCustomField', 'DifferentialRepositoryField' => 'DifferentialCoreCustomField',
'DifferentialRepositoryLookup' => 'Phobject', 'DifferentialRepositoryLookup' => 'Phobject',
@ -3112,7 +3112,7 @@ phutil_register_library_map(array(
'DiffusionCommitParentsQueryConduitAPIMethod' => 'DiffusionQueryConduitAPIMethod', 'DiffusionCommitParentsQueryConduitAPIMethod' => 'DiffusionQueryConduitAPIMethod',
'DiffusionCommitQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'DiffusionCommitQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'DiffusionCommitRef' => 'Phobject', 'DiffusionCommitRef' => 'Phobject',
'DiffusionCommitRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'DiffusionCommitRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'DiffusionCommitTagsController' => 'DiffusionController', 'DiffusionCommitTagsController' => 'DiffusionController',
'DiffusionConduitAPIMethod' => 'ConduitAPIMethod', 'DiffusionConduitAPIMethod' => 'ConduitAPIMethod',
'DiffusionController' => 'PhabricatorController', 'DiffusionController' => 'PhabricatorController',
@ -3202,7 +3202,7 @@ phutil_register_library_map(array(
'DiffusionRepositoryListController' => 'DiffusionController', 'DiffusionRepositoryListController' => 'DiffusionController',
'DiffusionRepositoryNewController' => 'DiffusionController', 'DiffusionRepositoryNewController' => 'DiffusionController',
'DiffusionRepositoryRef' => 'Phobject', 'DiffusionRepositoryRef' => 'Phobject',
'DiffusionRepositoryRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'DiffusionRepositoryRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'DiffusionResolveRefsConduitAPIMethod' => 'DiffusionQueryConduitAPIMethod', 'DiffusionResolveRefsConduitAPIMethod' => 'DiffusionQueryConduitAPIMethod',
'DiffusionResolveUserQuery' => 'Phobject', 'DiffusionResolveUserQuery' => 'Phobject',
'DiffusionSSHGitReceivePackWorkflow' => 'DiffusionSSHGitWorkflow', 'DiffusionSSHGitReceivePackWorkflow' => 'DiffusionSSHGitWorkflow',
@ -3266,10 +3266,10 @@ phutil_register_library_map(array(
'DivinerPHPAtomizer' => 'DivinerAtomizer', 'DivinerPHPAtomizer' => 'DivinerAtomizer',
'DivinerParameterTableView' => 'AphrontTagView', 'DivinerParameterTableView' => 'AphrontTagView',
'DivinerPublishCache' => 'DivinerDiskCache', 'DivinerPublishCache' => 'DivinerDiskCache',
'DivinerRemarkupRuleSymbol' => 'PhutilRemarkupRule',
'DivinerReturnTableView' => 'AphrontTagView', 'DivinerReturnTableView' => 'AphrontTagView',
'DivinerSectionView' => 'AphrontTagView', 'DivinerSectionView' => 'AphrontTagView',
'DivinerStaticPublisher' => 'DivinerPublisher', 'DivinerStaticPublisher' => 'DivinerPublisher',
'DivinerSymbolRemarkupRule' => 'PhutilRemarkupRule',
'DivinerWorkflow' => 'PhabricatorManagementWorkflow', 'DivinerWorkflow' => 'PhabricatorManagementWorkflow',
'DoorkeeperBridge' => 'Phobject', 'DoorkeeperBridge' => 'Phobject',
'DoorkeeperBridgeAsana' => 'DoorkeeperBridge', 'DoorkeeperBridgeAsana' => 'DoorkeeperBridge',
@ -3487,7 +3487,7 @@ phutil_register_library_map(array(
'HarbormasterPublishFragmentBuildStepImplementation' => 'HarbormasterBuildStepImplementation', 'HarbormasterPublishFragmentBuildStepImplementation' => 'HarbormasterBuildStepImplementation',
'HarbormasterQueryBuildablesConduitAPIMethod' => 'HarbormasterConduitAPIMethod', 'HarbormasterQueryBuildablesConduitAPIMethod' => 'HarbormasterConduitAPIMethod',
'HarbormasterQueryBuildsConduitAPIMethod' => 'HarbormasterConduitAPIMethod', 'HarbormasterQueryBuildsConduitAPIMethod' => 'HarbormasterConduitAPIMethod',
'HarbormasterRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'HarbormasterRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'HarbormasterScratchTable' => 'HarbormasterDAO', 'HarbormasterScratchTable' => 'HarbormasterDAO',
'HarbormasterSendMessageConduitAPIMethod' => 'HarbormasterConduitAPIMethod', 'HarbormasterSendMessageConduitAPIMethod' => 'HarbormasterConduitAPIMethod',
'HarbormasterSleepBuildStepImplementation' => 'HarbormasterBuildStepImplementation', 'HarbormasterSleepBuildStepImplementation' => 'HarbormasterBuildStepImplementation',
@ -3520,7 +3520,7 @@ phutil_register_library_map(array(
'HeraldPreCommitContentAdapter' => 'HeraldPreCommitAdapter', 'HeraldPreCommitContentAdapter' => 'HeraldPreCommitAdapter',
'HeraldPreCommitRefAdapter' => 'HeraldPreCommitAdapter', 'HeraldPreCommitRefAdapter' => 'HeraldPreCommitAdapter',
'HeraldRecursiveConditionsException' => 'Exception', 'HeraldRecursiveConditionsException' => 'Exception',
'HeraldRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'HeraldRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'HeraldRule' => array( 'HeraldRule' => array(
'HeraldDAO', 'HeraldDAO',
'PhabricatorFlaggableInterface', 'PhabricatorFlaggableInterface',
@ -3579,7 +3579,7 @@ phutil_register_library_map(array(
'LegalpadDocumentListController' => 'LegalpadController', 'LegalpadDocumentListController' => 'LegalpadController',
'LegalpadDocumentManageController' => 'LegalpadController', 'LegalpadDocumentManageController' => 'LegalpadController',
'LegalpadDocumentQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'LegalpadDocumentQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'LegalpadDocumentRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'LegalpadDocumentRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'LegalpadDocumentSearchEngine' => 'PhabricatorApplicationSearchEngine', 'LegalpadDocumentSearchEngine' => 'PhabricatorApplicationSearchEngine',
'LegalpadDocumentSignController' => 'LegalpadController', 'LegalpadDocumentSignController' => 'LegalpadController',
'LegalpadDocumentSignature' => array( 'LegalpadDocumentSignature' => array(
@ -3646,7 +3646,7 @@ phutil_register_library_map(array(
'ManiphestNameIndexEventListener' => 'PhabricatorEventListener', 'ManiphestNameIndexEventListener' => 'PhabricatorEventListener',
'ManiphestQueryConduitAPIMethod' => 'ManiphestConduitAPIMethod', 'ManiphestQueryConduitAPIMethod' => 'ManiphestConduitAPIMethod',
'ManiphestQueryStatusesConduitAPIMethod' => 'ManiphestConduitAPIMethod', 'ManiphestQueryStatusesConduitAPIMethod' => 'ManiphestConduitAPIMethod',
'ManiphestRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'ManiphestRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'ManiphestReplyHandler' => 'PhabricatorMailReplyHandler', 'ManiphestReplyHandler' => 'PhabricatorMailReplyHandler',
'ManiphestReportController' => 'ManiphestController', 'ManiphestReportController' => 'ManiphestController',
'ManiphestSearchIndexer' => 'PhabricatorSearchDocumentIndexer', 'ManiphestSearchIndexer' => 'PhabricatorSearchDocumentIndexer',
@ -3847,7 +3847,7 @@ phutil_register_library_map(array(
'PassphraseCredentialViewController' => 'PassphraseController', 'PassphraseCredentialViewController' => 'PassphraseController',
'PassphraseDAO' => 'PhabricatorLiskDAO', 'PassphraseDAO' => 'PhabricatorLiskDAO',
'PassphrasePasswordKey' => 'PassphraseAbstractKey', 'PassphrasePasswordKey' => 'PassphraseAbstractKey',
'PassphraseRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'PassphraseRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'PassphraseSSHKey' => 'PassphraseAbstractKey', 'PassphraseSSHKey' => 'PassphraseAbstractKey',
'PassphraseSecret' => 'PassphraseDAO', 'PassphraseSecret' => 'PassphraseDAO',
'PasteConduitAPIMethod' => 'ConduitAPIMethod', 'PasteConduitAPIMethod' => 'ConduitAPIMethod',
@ -4150,7 +4150,7 @@ phutil_register_library_map(array(
'PhabricatorCountdownEditController' => 'PhabricatorCountdownController', 'PhabricatorCountdownEditController' => 'PhabricatorCountdownController',
'PhabricatorCountdownListController' => 'PhabricatorCountdownController', 'PhabricatorCountdownListController' => 'PhabricatorCountdownController',
'PhabricatorCountdownQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'PhabricatorCountdownQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhabricatorCountdownRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'PhabricatorCountdownRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'PhabricatorCountdownSearchEngine' => 'PhabricatorApplicationSearchEngine', 'PhabricatorCountdownSearchEngine' => 'PhabricatorApplicationSearchEngine',
'PhabricatorCountdownView' => 'AphrontTagView', 'PhabricatorCountdownView' => 'AphrontTagView',
'PhabricatorCountdownViewController' => 'PhabricatorCountdownController', 'PhabricatorCountdownViewController' => 'PhabricatorCountdownController',
@ -4245,7 +4245,7 @@ phutil_register_library_map(array(
'PhabricatorDashboardPanelTypeText' => 'PhabricatorDashboardPanelType', 'PhabricatorDashboardPanelTypeText' => 'PhabricatorDashboardPanelType',
'PhabricatorDashboardPanelViewController' => 'PhabricatorDashboardController', 'PhabricatorDashboardPanelViewController' => 'PhabricatorDashboardController',
'PhabricatorDashboardQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'PhabricatorDashboardQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhabricatorDashboardRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'PhabricatorDashboardRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'PhabricatorDashboardRemovePanelController' => 'PhabricatorDashboardController', 'PhabricatorDashboardRemovePanelController' => 'PhabricatorDashboardController',
'PhabricatorDashboardRenderingEngine' => 'Phobject', 'PhabricatorDashboardRenderingEngine' => 'Phobject',
'PhabricatorDashboardSearchEngine' => 'PhabricatorApplicationSearchEngine', 'PhabricatorDashboardSearchEngine' => 'PhabricatorApplicationSearchEngine',
@ -4283,6 +4283,7 @@ phutil_register_library_map(array(
'PhabricatorEditor' => 'Phobject', 'PhabricatorEditor' => 'Phobject',
'PhabricatorEmailLoginController' => 'PhabricatorAuthController', 'PhabricatorEmailLoginController' => 'PhabricatorAuthController',
'PhabricatorEmailVerificationController' => 'PhabricatorAuthController', 'PhabricatorEmailVerificationController' => 'PhabricatorAuthController',
'PhabricatorEmbedFileRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'PhabricatorEmptyQueryException' => 'Exception', 'PhabricatorEmptyQueryException' => 'Exception',
'PhabricatorEnglishTranslation' => 'PhabricatorBaseEnglishTranslation', 'PhabricatorEnglishTranslation' => 'PhabricatorBaseEnglishTranslation',
'PhabricatorEnvTestCase' => 'PhabricatorTestCase', 'PhabricatorEnvTestCase' => 'PhabricatorTestCase',
@ -4435,6 +4436,8 @@ phutil_register_library_map(array(
'PhabricatorHunksManagementMigrateWorkflow' => 'PhabricatorHunksManagementWorkflow', 'PhabricatorHunksManagementMigrateWorkflow' => 'PhabricatorHunksManagementWorkflow',
'PhabricatorHunksManagementWorkflow' => 'PhabricatorManagementWorkflow', 'PhabricatorHunksManagementWorkflow' => 'PhabricatorManagementWorkflow',
'PhabricatorIRCProtocolAdapter' => 'PhabricatorBaseProtocolAdapter', 'PhabricatorIRCProtocolAdapter' => 'PhabricatorBaseProtocolAdapter',
'PhabricatorIconRemarkupRule' => 'PhutilRemarkupRule',
'PhabricatorImageMacroRemarkupRule' => 'PhutilRemarkupRule',
'PhabricatorInfrastructureTestCase' => 'PhabricatorTestCase', 'PhabricatorInfrastructureTestCase' => 'PhabricatorTestCase',
'PhabricatorInlineCommentController' => 'PhabricatorController', 'PhabricatorInlineCommentController' => 'PhabricatorController',
'PhabricatorInlineCommentInterface' => 'PhabricatorMarkupInterface', 'PhabricatorInlineCommentInterface' => 'PhabricatorMarkupInterface',
@ -4515,6 +4518,8 @@ phutil_register_library_map(array(
'PhabricatorMarkupCache' => 'PhabricatorCacheDAO', 'PhabricatorMarkupCache' => 'PhabricatorCacheDAO',
'PhabricatorMarkupOneOff' => 'PhabricatorMarkupInterface', 'PhabricatorMarkupOneOff' => 'PhabricatorMarkupInterface',
'PhabricatorMarkupPreviewController' => 'PhabricatorController', 'PhabricatorMarkupPreviewController' => 'PhabricatorController',
'PhabricatorMemeRemarkupRule' => 'PhutilRemarkupRule',
'PhabricatorMentionRemarkupRule' => 'PhutilRemarkupRule',
'PhabricatorMercurialGraphStream' => 'PhabricatorRepositoryGraphStream', 'PhabricatorMercurialGraphStream' => 'PhabricatorRepositoryGraphStream',
'PhabricatorMetaMTAActorQuery' => 'PhabricatorQuery', 'PhabricatorMetaMTAActorQuery' => 'PhabricatorQuery',
'PhabricatorMetaMTAApplication' => 'PhabricatorApplication', 'PhabricatorMetaMTAApplication' => 'PhabricatorApplication',
@ -4601,6 +4606,7 @@ phutil_register_library_map(array(
'PhabricatorObjectMailReceiver' => 'PhabricatorMailReceiver', 'PhabricatorObjectMailReceiver' => 'PhabricatorMailReceiver',
'PhabricatorObjectMailReceiverTestCase' => 'PhabricatorTestCase', 'PhabricatorObjectMailReceiverTestCase' => 'PhabricatorTestCase',
'PhabricatorObjectQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'PhabricatorObjectQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhabricatorObjectRemarkupRule' => 'PhutilRemarkupRule',
'PhabricatorOffsetPagedQuery' => 'PhabricatorQuery', 'PhabricatorOffsetPagedQuery' => 'PhabricatorQuery',
'PhabricatorOwnersApplication' => 'PhabricatorApplication', 'PhabricatorOwnersApplication' => 'PhabricatorApplication',
'PhabricatorOwnersConfigOptions' => 'PhabricatorApplicationConfigOptions', 'PhabricatorOwnersConfigOptions' => 'PhabricatorApplicationConfigOptions',
@ -4647,7 +4653,7 @@ phutil_register_library_map(array(
'PhabricatorPasteListController' => 'PhabricatorPasteController', 'PhabricatorPasteListController' => 'PhabricatorPasteController',
'PhabricatorPastePastePHIDType' => 'PhabricatorPHIDType', 'PhabricatorPastePastePHIDType' => 'PhabricatorPHIDType',
'PhabricatorPasteQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'PhabricatorPasteQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhabricatorPasteRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'PhabricatorPasteRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'PhabricatorPasteSearchEngine' => 'PhabricatorApplicationSearchEngine', 'PhabricatorPasteSearchEngine' => 'PhabricatorApplicationSearchEngine',
'PhabricatorPasteTestDataGenerator' => 'PhabricatorTestDataGenerator', 'PhabricatorPasteTestDataGenerator' => 'PhabricatorTestDataGenerator',
'PhabricatorPasteTransaction' => 'PhabricatorApplicationTransaction', 'PhabricatorPasteTransaction' => 'PhabricatorApplicationTransaction',
@ -4807,20 +4813,13 @@ phutil_register_library_map(array(
'PhabricatorRegistrationProfile' => 'Phobject', 'PhabricatorRegistrationProfile' => 'Phobject',
'PhabricatorReleephApplication' => 'PhabricatorApplication', 'PhabricatorReleephApplication' => 'PhabricatorApplication',
'PhabricatorReleephApplicationConfigOptions' => 'PhabricatorApplicationConfigOptions', 'PhabricatorReleephApplicationConfigOptions' => 'PhabricatorApplicationConfigOptions',
'PhabricatorRemarkupBlockInterpreterCowsay' => 'PhutilRemarkupBlockInterpreter',
'PhabricatorRemarkupBlockInterpreterFiglet' => 'PhutilRemarkupBlockInterpreter',
'PhabricatorRemarkupBlockInterpreterGraphviz' => 'PhutilRemarkupBlockInterpreter',
'PhabricatorRemarkupControl' => 'AphrontFormTextAreaControl', 'PhabricatorRemarkupControl' => 'AphrontFormTextAreaControl',
'PhabricatorRemarkupCustomBlockRule' => 'PhutilRemarkupEngineBlockRule', 'PhabricatorRemarkupCowsayBlockInterpreter' => 'PhutilRemarkupBlockInterpreter',
'PhabricatorRemarkupCustomBlockRule' => 'PhutilRemarkupBlockRule',
'PhabricatorRemarkupCustomInlineRule' => 'PhutilRemarkupRule', 'PhabricatorRemarkupCustomInlineRule' => 'PhutilRemarkupRule',
'PhabricatorRemarkupExample' => 'PhabricatorUIExample', 'PhabricatorRemarkupExample' => 'PhabricatorUIExample',
'PhabricatorRemarkupRuleEmbedFile' => 'PhabricatorRemarkupRuleObject', 'PhabricatorRemarkupFigletBlockInterpreter' => 'PhutilRemarkupBlockInterpreter',
'PhabricatorRemarkupRuleIcon' => 'PhutilRemarkupRule', 'PhabricatorRemarkupGraphvizBlockInterpreter' => 'PhutilRemarkupBlockInterpreter',
'PhabricatorRemarkupRuleImageMacro' => 'PhutilRemarkupRule',
'PhabricatorRemarkupRuleMeme' => 'PhutilRemarkupRule',
'PhabricatorRemarkupRuleMention' => 'PhutilRemarkupRule',
'PhabricatorRemarkupRuleObject' => 'PhutilRemarkupRule',
'PhabricatorRemarkupRuleYoutube' => 'PhutilRemarkupRule',
'PhabricatorRepositoriesApplication' => 'PhabricatorApplication', 'PhabricatorRepositoriesApplication' => 'PhabricatorApplication',
'PhabricatorRepository' => array( 'PhabricatorRepository' => array(
'PhabricatorRepositoryDAO', 'PhabricatorRepositoryDAO',
@ -5225,6 +5224,7 @@ phutil_register_library_map(array(
'PhabricatorXHProfProfileView' => 'AphrontView', 'PhabricatorXHProfProfileView' => 'AphrontView',
'PhabricatorXHProfSample' => 'PhabricatorXHProfDAO', 'PhabricatorXHProfSample' => 'PhabricatorXHProfDAO',
'PhabricatorXHProfSampleListController' => 'PhabricatorXHProfController', 'PhabricatorXHProfSampleListController' => 'PhabricatorXHProfController',
'PhabricatorYoutubeRemarkupRule' => 'PhutilRemarkupRule',
'PhameBasicBlogSkin' => 'PhameBlogSkin', 'PhameBasicBlogSkin' => 'PhameBlogSkin',
'PhameBasicTemplateBlogSkin' => 'PhameBasicBlogSkin', 'PhameBasicTemplateBlogSkin' => 'PhameBasicBlogSkin',
'PhameBlog' => array( 'PhameBlog' => array(
@ -5320,7 +5320,7 @@ phutil_register_library_map(array(
'PholioMockSearchEngine' => 'PhabricatorApplicationSearchEngine', 'PholioMockSearchEngine' => 'PhabricatorApplicationSearchEngine',
'PholioMockThumbGridView' => 'AphrontView', 'PholioMockThumbGridView' => 'AphrontView',
'PholioMockViewController' => 'PholioController', 'PholioMockViewController' => 'PholioController',
'PholioRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'PholioRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'PholioReplyHandler' => 'PhabricatorMailReplyHandler', 'PholioReplyHandler' => 'PhabricatorMailReplyHandler',
'PholioSearchIndexer' => 'PhabricatorSearchDocumentIndexer', 'PholioSearchIndexer' => 'PhabricatorSearchDocumentIndexer',
'PholioTransaction' => 'PhabricatorApplicationTransaction', 'PholioTransaction' => 'PhabricatorApplicationTransaction',
@ -5548,7 +5548,7 @@ phutil_register_library_map(array(
'PonderQuestionTransactionComment' => 'PhabricatorApplicationTransactionComment', 'PonderQuestionTransactionComment' => 'PhabricatorApplicationTransactionComment',
'PonderQuestionTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 'PonderQuestionTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'PonderQuestionViewController' => 'PonderController', 'PonderQuestionViewController' => 'PonderController',
'PonderRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'PonderRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'PonderSearchIndexer' => 'PhabricatorSearchDocumentIndexer', 'PonderSearchIndexer' => 'PhabricatorSearchDocumentIndexer',
'PonderTransactionFeedStory' => 'PhabricatorApplicationTransactionFeedStory', 'PonderTransactionFeedStory' => 'PhabricatorApplicationTransactionFeedStory',
'PonderVotableView' => 'AphrontView', 'PonderVotableView' => 'AphrontView',
@ -5558,7 +5558,7 @@ phutil_register_library_map(array(
'ProjectConduitAPIMethod' => 'ConduitAPIMethod', 'ProjectConduitAPIMethod' => 'ConduitAPIMethod',
'ProjectCreateProjectsCapability' => 'PhabricatorPolicyCapability', 'ProjectCreateProjectsCapability' => 'PhabricatorPolicyCapability',
'ProjectQueryConduitAPIMethod' => 'ProjectConduitAPIMethod', 'ProjectQueryConduitAPIMethod' => 'ProjectConduitAPIMethod',
'ProjectRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'ProjectRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'QueryFormattingTestCase' => 'PhabricatorTestCase', 'QueryFormattingTestCase' => 'PhabricatorTestCase',
'ReleephAuthorFieldSpecification' => 'ReleephFieldSpecification', 'ReleephAuthorFieldSpecification' => 'ReleephFieldSpecification',
'ReleephBranch' => array( 'ReleephBranch' => array(
@ -5671,7 +5671,7 @@ phutil_register_library_map(array(
'SlowvoteConduitAPIMethod' => 'ConduitAPIMethod', 'SlowvoteConduitAPIMethod' => 'ConduitAPIMethod',
'SlowvoteEmbedView' => 'AphrontView', 'SlowvoteEmbedView' => 'AphrontView',
'SlowvoteInfoConduitAPIMethod' => 'SlowvoteConduitAPIMethod', 'SlowvoteInfoConduitAPIMethod' => 'SlowvoteConduitAPIMethod',
'SlowvoteRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'SlowvoteRemarkupRule' => 'PhabricatorObjectRemarkupRule',
'TokenConduitAPIMethod' => 'ConduitAPIMethod', 'TokenConduitAPIMethod' => 'ConduitAPIMethod',
'TokenGiveConduitAPIMethod' => 'TokenConduitAPIMethod', 'TokenGiveConduitAPIMethod' => 'TokenConduitAPIMethod',
'TokenGivenConduitAPIMethod' => 'TokenConduitAPIMethod', 'TokenGivenConduitAPIMethod' => 'TokenConduitAPIMethod',

View file

@ -1,7 +1,7 @@
<?php <?php
final class PhabricatorCountdownRemarkupRule final class PhabricatorCountdownRemarkupRule
extends PhabricatorRemarkupRuleObject { extends PhabricatorObjectRemarkupRule {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'C'; return 'C';

View file

@ -1,7 +1,7 @@
<?php <?php
final class PhabricatorDashboardRemarkupRule final class PhabricatorDashboardRemarkupRule
extends PhabricatorRemarkupRuleObject { extends PhabricatorObjectRemarkupRule {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'W'; return 'W';

View file

@ -1,6 +1,6 @@
<?php <?php
final class DifferentialRemarkupRule extends PhabricatorRemarkupRuleObject { final class DifferentialRemarkupRule extends PhabricatorObjectRemarkupRule {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'D'; return 'D';

View file

@ -125,8 +125,7 @@ final class DiffusionReadmeQueryConduitAPIMethod
->getOutput($markup_object, $markup_field); ->getOutput($markup_object, $markup_field);
$engine = $markup_object->newMarkupEngine($markup_field); $engine = $markup_object->newMarkupEngine($markup_field);
$toc = PhutilRemarkupEngineRemarkupHeaderBlockRule::renderTableOfContents( $toc = PhutilRemarkupHeaderBlockRule::renderTableOfContents($engine);
$engine);
if ($toc) { if ($toc) {
$toc = phutil_tag_div( $toc = phutil_tag_div(
'phabricator-remarkup-toc', 'phabricator-remarkup-toc',

View file

@ -1,6 +1,6 @@
<?php <?php
final class DiffusionCommitRemarkupRule extends PhabricatorRemarkupRuleObject { final class DiffusionCommitRemarkupRule extends PhabricatorObjectRemarkupRule {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return ''; return '';

View file

@ -1,7 +1,7 @@
<?php <?php
final class DiffusionRepositoryRemarkupRule final class DiffusionRepositoryRemarkupRule
extends PhabricatorRemarkupRuleObject { extends PhabricatorObjectRemarkupRule {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'r'; return 'r';

View file

@ -45,7 +45,7 @@ final class PhabricatorDivinerApplication extends PhabricatorApplication {
public function getRemarkupRules() { public function getRemarkupRules() {
return array( return array(
new DivinerRemarkupRuleSymbol(), new DivinerSymbolRemarkupRule(),
); );
} }

View file

@ -115,7 +115,7 @@ final class DivinerAtomController extends DivinerController {
$toc = $engine->getEngineMetadata( $toc = $engine->getEngineMetadata(
$symbol, $symbol,
$field, $field,
PhutilRemarkupEngineRemarkupHeaderBlockRule::KEY_HEADER_TOC, PhutilRemarkupHeaderBlockRule::KEY_HEADER_TOC,
array()); array());
$document = id(new PHUIDocumentView()) $document = id(new PHUIDocumentView())

View file

@ -1,6 +1,6 @@
<?php <?php
final class DivinerRemarkupRuleSymbol extends PhutilRemarkupRule { final class DivinerSymbolRemarkupRule extends PhutilRemarkupRule {
const KEY_RULE_ATOM_REF = 'rule.diviner.atomref'; const KEY_RULE_ATOM_REF = 'rule.diviner.atomref';

View file

@ -1,7 +1,6 @@
<?php <?php
abstract class DoorkeeperRemarkupRule abstract class DoorkeeperRemarkupRule extends PhutilRemarkupRule {
extends PhutilRemarkupRule {
const KEY_TAGS = 'doorkeeper.tags'; const KEY_TAGS = 'doorkeeper.tags';

View file

@ -36,7 +36,7 @@ final class PhabricatorFilesApplication extends PhabricatorApplication {
public function getRemarkupRules() { public function getRemarkupRules() {
return array( return array(
new PhabricatorRemarkupRuleEmbedFile(), new PhabricatorEmbedFileRemarkupRule(),
); );
} }

View file

@ -1,7 +1,7 @@
<?php <?php
final class PhabricatorRemarkupRuleEmbedFile final class PhabricatorEmbedFileRemarkupRule
extends PhabricatorRemarkupRuleObject { extends PhabricatorObjectRemarkupRule {
const KEY_EMBED_FILE_PHIDS = 'phabricator.embedded-file-phids'; const KEY_EMBED_FILE_PHIDS = 'phabricator.embedded-file-phids';

View file

@ -1,7 +1,6 @@
<?php <?php
final class HarbormasterRemarkupRule final class HarbormasterRemarkupRule extends PhabricatorObjectRemarkupRule {
extends PhabricatorRemarkupRuleObject {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'B'; return 'B';

View file

@ -1,7 +1,6 @@
<?php <?php
final class HeraldRemarkupRule final class HeraldRemarkupRule extends PhabricatorObjectRemarkupRule {
extends PhabricatorRemarkupRuleObject {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'H'; return 'H';

View file

@ -1,7 +1,6 @@
<?php <?php
final class LegalpadDocumentRemarkupRule final class LegalpadDocumentRemarkupRule extends PhabricatorObjectRemarkupRule {
extends PhabricatorRemarkupRuleObject {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'L'; return 'L';

View file

@ -44,7 +44,7 @@ final class PhabricatorMacroApplication extends PhabricatorApplication {
public function getRemarkupRules() { public function getRemarkupRules() {
return array( return array(
new PhabricatorRemarkupRuleIcon(), new PhabricatorIconRemarkupRule(),
); );
} }

View file

@ -1,7 +1,6 @@
<?php <?php
final class PhabricatorRemarkupRuleIcon final class PhabricatorIconRemarkupRule extends PhutilRemarkupRule {
extends PhutilRemarkupRule {
public function getPriority() { public function getPriority() {
return 200.0; return 200.0;

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorRemarkupRuleImageMacro extends PhutilRemarkupRule { final class PhabricatorImageMacroRemarkupRule extends PhutilRemarkupRule {
private $macros; private $macros;

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorRemarkupRuleMeme extends PhutilRemarkupRule { final class PhabricatorMemeRemarkupRule extends PhutilRemarkupRule {
private $images; private $images;

View file

@ -1,6 +1,6 @@
<?php <?php
final class ManiphestRemarkupRule extends PhabricatorRemarkupRuleObject { final class ManiphestRemarkupRule extends PhabricatorObjectRemarkupRule {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'T'; return 'T';

View file

@ -1,7 +1,6 @@
<?php <?php
final class PassphraseRemarkupRule final class PassphraseRemarkupRule extends PhabricatorObjectRemarkupRule {
extends PhabricatorRemarkupRuleObject {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'K'; return 'K';

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorPasteRemarkupRule extends PhabricatorRemarkupRuleObject { final class PhabricatorPasteRemarkupRule extends PhabricatorObjectRemarkupRule {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'P'; return 'P';

View file

@ -72,7 +72,7 @@ final class PhabricatorPeopleApplication extends PhabricatorApplication {
public function getRemarkupRules() { public function getRemarkupRules() {
return array( return array(
new PhabricatorRemarkupRuleMention(), new PhabricatorMentionRemarkupRule(),
); );
} }

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorRemarkupRuleMention extends PhutilRemarkupRule { final class PhabricatorMentionRemarkupRule extends PhutilRemarkupRule {
const KEY_RULE_MENTION = 'rule.mention'; const KEY_RULE_MENTION = 'rule.mention';
const KEY_RULE_MENTION_ORIGINAL = 'rule.mention.original'; const KEY_RULE_MENTION_ORIGINAL = 'rule.mention.original';

View file

@ -1,7 +1,6 @@
<?php <?php
final class PholioRemarkupRule final class PholioRemarkupRule extends PhabricatorObjectRemarkupRule {
extends PhabricatorRemarkupRuleObject {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'M'; return 'M';

View file

@ -69,7 +69,7 @@ final class PhrictionContent extends PhrictionDAO
$output, $output,
PhutilMarkupEngine $engine) { PhutilMarkupEngine $engine) {
$toc = PhutilRemarkupEngineRemarkupHeaderBlockRule::renderTableOfContents( $toc = PhutilRemarkupHeaderBlockRule::renderTableOfContents(
$engine); $engine);
if ($toc) { if ($toc) {

View file

@ -1,7 +1,6 @@
<?php <?php
final class PonderRemarkupRule final class PonderRemarkupRule extends PhabricatorObjectRemarkupRule {
extends PhabricatorRemarkupRuleObject {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'Q'; return 'Q';

View file

@ -1,7 +1,6 @@
<?php <?php
final class ProjectRemarkupRule final class ProjectRemarkupRule extends PhabricatorObjectRemarkupRule {
extends PhabricatorRemarkupRuleObject {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return '#'; return '#';

View file

@ -1,6 +1,6 @@
<?php <?php
final class SlowvoteRemarkupRule extends PhabricatorRemarkupRuleObject { final class SlowvoteRemarkupRule extends PhabricatorObjectRemarkupRule {
protected function getObjectNamePrefix() { protected function getObjectNamePrefix() {
return 'V'; return 'V';

View file

@ -1140,7 +1140,7 @@ abstract class PhabricatorApplicationTransactionEditor
foreach ($xaction_blocks as $block) { foreach ($xaction_blocks as $block) {
$engine->markupText($block); $engine->markupText($block);
$phids += $engine->getTextMetadata( $phids += $engine->getTextMetadata(
PhabricatorRemarkupRuleObject::KEY_MENTIONED_OBJECTS, PhabricatorObjectRemarkupRule::KEY_MENTIONED_OBJECTS,
array()); array());
} }
} }

View file

@ -440,14 +440,14 @@ final class PhabricatorMarkupEngine {
$options['syntax-highlighter.engine']); $options['syntax-highlighter.engine']);
$rules = array(); $rules = array();
$rules[] = new PhutilRemarkupRuleEscapeRemarkup(); $rules[] = new PhutilRemarkupEscapeRemarkupRule();
$rules[] = new PhutilRemarkupRuleMonospace(); $rules[] = new PhutilRemarkupMonospaceRule();
$rules[] = new PhutilRemarkupRuleDocumentLink(); $rules[] = new PhutilRemarkupDocumentLinkRule();
if ($options['youtube']) { if ($options['youtube']) {
$rules[] = new PhabricatorRemarkupRuleYoutube(); $rules[] = new PhabricatorYoutubeRemarkupRule();
} }
$applications = PhabricatorApplication::getAllInstalledApplications(); $applications = PhabricatorApplication::getAllInstalledApplications();
@ -457,35 +457,35 @@ final class PhabricatorMarkupEngine {
} }
} }
$rules[] = new PhutilRemarkupRuleHyperlink(); $rules[] = new PhutilRemarkupHyperlinkRule();
if ($options['macros']) { if ($options['macros']) {
$rules[] = new PhabricatorRemarkupRuleImageMacro(); $rules[] = new PhabricatorImageMacroRemarkupRule();
$rules[] = new PhabricatorRemarkupRuleMeme(); $rules[] = new PhabricatorMemeRemarkupRule();
} }
$rules[] = new PhutilRemarkupRuleBold(); $rules[] = new PhutilRemarkupBoldRule();
$rules[] = new PhutilRemarkupRuleItalic(); $rules[] = new PhutilRemarkupItalicRule();
$rules[] = new PhutilRemarkupRuleDel(); $rules[] = new PhutilRemarkupDelRule();
$rules[] = new PhutilRemarkupRuleUnderline(); $rules[] = new PhutilRemarkupUnderlineRule();
foreach (self::loadCustomInlineRules() as $rule) { foreach (self::loadCustomInlineRules() as $rule) {
$rules[] = $rule; $rules[] = $rule;
} }
$blocks = array(); $blocks = array();
$blocks[] = new PhutilRemarkupEngineRemarkupQuotesBlockRule(); $blocks[] = new PhutilRemarkupQuotesBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupReplyBlockRule(); $blocks[] = new PhutilRemarkupReplyBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupLiteralBlockRule(); $blocks[] = new PhutilRemarkupLiteralBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupHeaderBlockRule(); $blocks[] = new PhutilRemarkupHeaderBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupHorizontalRuleBlockRule(); $blocks[] = new PhutilRemarkupHorizontalRuleBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupListBlockRule(); $blocks[] = new PhutilRemarkupListBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupCodeBlockRule(); $blocks[] = new PhutilRemarkupCodeBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupNoteBlockRule(); $blocks[] = new PhutilRemarkupNoteBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupTableBlockRule(); $blocks[] = new PhutilRemarkupTableBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupSimpleTableBlockRule(); $blocks[] = new PhutilRemarkupSimpleTableBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupInterpreterRule(); $blocks[] = new PhutilRemarkupInterpreterBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupDefaultBlockRule(); $blocks[] = new PhutilRemarkupDefaultBlockRule();
foreach (self::loadCustomBlockRules() as $rule) { foreach (self::loadCustomBlockRules() as $rule) {
$blocks[] = $rule; $blocks[] = $rule;
@ -512,7 +512,7 @@ final class PhabricatorMarkupEngine {
foreach ($content_blocks as $content_block) { foreach ($content_blocks as $content_block) {
$engine->markupText($content_block); $engine->markupText($content_block);
$phids = $engine->getTextMetadata( $phids = $engine->getTextMetadata(
PhabricatorRemarkupRuleMention::KEY_MENTIONED, PhabricatorMentionRemarkupRule::KEY_MENTIONED,
array()); array());
$mentions += $phids; $mentions += $phids;
} }
@ -531,7 +531,7 @@ final class PhabricatorMarkupEngine {
foreach ($content_blocks as $content_block) { foreach ($content_blocks as $content_block) {
$engine->markupText($content_block); $engine->markupText($content_block);
$ids = $engine->getTextMetadata( $ids = $engine->getTextMetadata(
PhabricatorRemarkupRuleEmbedFile::KEY_EMBED_FILE_PHIDS, PhabricatorEmbedFileRemarkupRule::KEY_EMBED_FILE_PHIDS,
array()); array());
$files += $ids; $files += $ids;
} }

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorRemarkupBlockInterpreterCowsay final class PhabricatorRemarkupCowsayBlockInterpreter
extends PhutilRemarkupBlockInterpreter { extends PhutilRemarkupBlockInterpreter {
public function getInterpreterName() { public function getInterpreterName() {

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorRemarkupBlockInterpreterFiglet final class PhabricatorRemarkupFigletBlockInterpreter
extends PhutilRemarkupBlockInterpreter { extends PhutilRemarkupBlockInterpreter {
public function getInterpreterName() { public function getInterpreterName() {

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorRemarkupBlockInterpreterGraphviz final class PhabricatorRemarkupGraphvizBlockInterpreter
extends PhutilRemarkupBlockInterpreter { extends PhutilRemarkupBlockInterpreter {
public function getInterpreterName() { public function getInterpreterName() {
@ -47,7 +47,7 @@ final class PhabricatorRemarkupBlockInterpreterGraphviz
)); ));
} }
// TODO: This is duplicated from PhabricatorRemarkupRuleEmbedFile since they // TODO: This is duplicated from PhabricatorEmbedFileRemarkupRule since they
// do not share a base class. // do not share a base class.
private function parseDimension($string) { private function parseDimension($string) {
$string = trim($string); $string = trim($string);

View file

@ -1,7 +1,6 @@
<?php <?php
abstract class PhabricatorRemarkupRuleObject abstract class PhabricatorObjectRemarkupRule extends PhutilRemarkupRule {
extends PhutilRemarkupRule {
const KEY_RULE_OBJECT = 'rule.object'; const KEY_RULE_OBJECT = 'rule.object';
const KEY_MENTIONED_OBJECTS = 'rule.object.mentioned'; const KEY_MENTIONED_OBJECTS = 'rule.object.mentioned';

View file

@ -1,7 +1,7 @@
<?php <?php
abstract class PhabricatorRemarkupCustomBlockRule abstract class PhabricatorRemarkupCustomBlockRule
extends PhutilRemarkupEngineBlockRule { extends PhutilRemarkupBlockRule {
public function getRuleVersion() { public function getRuleVersion() {
return 1; return 1;

View file

@ -1,7 +1,6 @@
<?php <?php
abstract class PhabricatorRemarkupCustomInlineRule abstract class PhabricatorRemarkupCustomInlineRule extends PhutilRemarkupRule {
extends PhutilRemarkupRule {
public function getRuleVersion() { public function getRuleVersion() {
return 1; return 1;

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorRemarkupRuleYoutube extends PhutilRemarkupRule { final class PhabricatorYoutubeRemarkupRule extends PhutilRemarkupRule {
public function getPriority() { public function getPriority() {
return 350.0; return 350.0;