Thiemo Mättig (WMDE) has uploaded a new change for review. https://gerrit.wikimedia.org/r/176660
Change subject: Move client Hooks classes to Hooks folder/namespace ...................................................................... Move client Hooks classes to Hooks folder/namespace Change-Id: If4662170bf8c644d27a32c522d30bd62258eb9a2 --- M client/WikibaseClient.hooks.php R client/includes/Hooks/BaseTemplateAfterPortletHandler.php R client/includes/Hooks/BeforePageDisplayHandler.php R client/includes/Hooks/ChangesPageWikibaseFilterHandler.php R client/includes/Hooks/DataUpdateHookHandlers.php R client/includes/Hooks/DeletePageNoticeCreator.php R client/includes/Hooks/InfoActionHookHandler.php R client/includes/Hooks/LanguageLinkBadgeDisplay.php R client/includes/Hooks/MovePageNoticeCreator.php R client/includes/Hooks/OtherProjectsSidebarGenerator.php R client/includes/Hooks/OtherProjectsSidebarGeneratorFactory.php R client/includes/Hooks/ParserAfterParseHookHandler.php R client/includes/Hooks/ParserFunctionRegistrant.php R client/includes/Hooks/SidebarHookHandlers.php R client/includes/Hooks/SpecialWatchlistQueryHandler.php R client/includes/Hooks/UpdateRepoHookHandlers.php M client/tests/phpunit/includes/hooks/DeletePageNoticeCreatorTest.php M client/tests/phpunit/includes/hooks/MovePageNoticeCreatorTest.php 18 files changed, 10 insertions(+), 12 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/60/176660/1 diff --git a/client/WikibaseClient.hooks.php b/client/WikibaseClient.hooks.php index 5cc19e5..c6c1fcd 100644 --- a/client/WikibaseClient.hooks.php +++ b/client/WikibaseClient.hooks.php @@ -5,7 +5,6 @@ use Action; use BaseTemplate; use ChangesList; -use Content; use FormOptions; use IContextSource; use Message; @@ -24,23 +23,20 @@ use UnexpectedValueException; use User; use Wikibase\Client\Changes\ChangeHandler; -use Wikibase\Client\DeletePageNoticeCreator; use Wikibase\Client\Hooks\BaseTemplateAfterPortletHandler; use Wikibase\Client\Hooks\BeforePageDisplayHandler; use Wikibase\Client\Hooks\ChangesPageWikibaseFilterHandler; +use Wikibase\Client\Hooks\DeletePageNoticeCreator; use Wikibase\Client\Hooks\InfoActionHookHandler; +use Wikibase\Client\Hooks\MovePageNoticeCreator; use Wikibase\Client\Hooks\SpecialWatchlistQueryHandler; -use Wikibase\Client\MovePageNoticeCreator; use Wikibase\Client\RecentChanges\ChangeLineFormatter; use Wikibase\Client\RecentChanges\ExternalChangeFactory; use Wikibase\Client\RecentChanges\RecentChangesFilterOptions; use Wikibase\Client\RepoItemLinkGenerator; -use Wikibase\Client\UpdateRepo\UpdateRepoOnDelete; -use Wikibase\Client\UpdateRepo\UpdateRepoOnMove; use Wikibase\Client\WikibaseClient; use Wikibase\DataModel\Entity\EntityId; use Wikibase\DataModel\SiteLink; -use WikiPage; /** * File defining the hook handlers for the Wikibase Client extension. diff --git a/client/includes/hooks/BaseTemplateAfterPortletHandler.php b/client/includes/Hooks/BaseTemplateAfterPortletHandler.php similarity index 100% rename from client/includes/hooks/BaseTemplateAfterPortletHandler.php rename to client/includes/Hooks/BaseTemplateAfterPortletHandler.php diff --git a/client/includes/hooks/BeforePageDisplayHandler.php b/client/includes/Hooks/BeforePageDisplayHandler.php similarity index 100% rename from client/includes/hooks/BeforePageDisplayHandler.php rename to client/includes/Hooks/BeforePageDisplayHandler.php diff --git a/client/includes/hooks/ChangesPageWikibaseFilterHandler.php b/client/includes/Hooks/ChangesPageWikibaseFilterHandler.php similarity index 100% rename from client/includes/hooks/ChangesPageWikibaseFilterHandler.php rename to client/includes/Hooks/ChangesPageWikibaseFilterHandler.php diff --git a/client/includes/hooks/DataUpdateHookHandlers.php b/client/includes/Hooks/DataUpdateHookHandlers.php similarity index 100% rename from client/includes/hooks/DataUpdateHookHandlers.php rename to client/includes/Hooks/DataUpdateHookHandlers.php diff --git a/client/includes/hooks/DeletePageNoticeCreator.php b/client/includes/Hooks/DeletePageNoticeCreator.php similarity index 96% rename from client/includes/hooks/DeletePageNoticeCreator.php rename to client/includes/Hooks/DeletePageNoticeCreator.php index f1c4cb6..04af59f 100644 --- a/client/includes/hooks/DeletePageNoticeCreator.php +++ b/client/includes/Hooks/DeletePageNoticeCreator.php @@ -1,9 +1,10 @@ <?php -namespace Wikibase\Client; +namespace Wikibase\Client\Hooks; use Html; use Title; +use Wikibase\Client\RepoLinker; use Wikibase\DataModel\SiteLink; use Wikibase\Lib\Store\SiteLinkLookup; diff --git a/client/includes/hooks/InfoActionHookHandler.php b/client/includes/Hooks/InfoActionHookHandler.php similarity index 100% rename from client/includes/hooks/InfoActionHookHandler.php rename to client/includes/Hooks/InfoActionHookHandler.php diff --git a/client/includes/hooks/LanguageLinkBadgeDisplay.php b/client/includes/Hooks/LanguageLinkBadgeDisplay.php similarity index 100% rename from client/includes/hooks/LanguageLinkBadgeDisplay.php rename to client/includes/Hooks/LanguageLinkBadgeDisplay.php diff --git a/client/includes/hooks/MovePageNoticeCreator.php b/client/includes/Hooks/MovePageNoticeCreator.php similarity index 96% rename from client/includes/hooks/MovePageNoticeCreator.php rename to client/includes/Hooks/MovePageNoticeCreator.php index bb25234..5232150 100644 --- a/client/includes/hooks/MovePageNoticeCreator.php +++ b/client/includes/Hooks/MovePageNoticeCreator.php @@ -1,9 +1,10 @@ <?php -namespace Wikibase\Client; +namespace Wikibase\Client\Hooks; use Html; use Title; +use Wikibase\Client\RepoLinker; use Wikibase\DataModel\SiteLink; use Wikibase\Lib\Store\SiteLinkLookup; diff --git a/client/includes/hooks/OtherProjectsSidebarGenerator.php b/client/includes/Hooks/OtherProjectsSidebarGenerator.php similarity index 100% rename from client/includes/hooks/OtherProjectsSidebarGenerator.php rename to client/includes/Hooks/OtherProjectsSidebarGenerator.php diff --git a/client/includes/hooks/OtherProjectsSidebarGeneratorFactory.php b/client/includes/Hooks/OtherProjectsSidebarGeneratorFactory.php similarity index 100% rename from client/includes/hooks/OtherProjectsSidebarGeneratorFactory.php rename to client/includes/Hooks/OtherProjectsSidebarGeneratorFactory.php diff --git a/client/includes/hooks/ParserAfterParseHookHandler.php b/client/includes/Hooks/ParserAfterParseHookHandler.php similarity index 100% rename from client/includes/hooks/ParserAfterParseHookHandler.php rename to client/includes/Hooks/ParserAfterParseHookHandler.php diff --git a/client/includes/hooks/ParserFunctionRegistrant.php b/client/includes/Hooks/ParserFunctionRegistrant.php similarity index 100% rename from client/includes/hooks/ParserFunctionRegistrant.php rename to client/includes/Hooks/ParserFunctionRegistrant.php diff --git a/client/includes/hooks/SidebarHookHandlers.php b/client/includes/Hooks/SidebarHookHandlers.php similarity index 100% rename from client/includes/hooks/SidebarHookHandlers.php rename to client/includes/Hooks/SidebarHookHandlers.php diff --git a/client/includes/hooks/SpecialWatchlistQueryHandler.php b/client/includes/Hooks/SpecialWatchlistQueryHandler.php similarity index 100% rename from client/includes/hooks/SpecialWatchlistQueryHandler.php rename to client/includes/Hooks/SpecialWatchlistQueryHandler.php diff --git a/client/includes/hooks/UpdateRepoHookHandlers.php b/client/includes/Hooks/UpdateRepoHookHandlers.php similarity index 100% rename from client/includes/hooks/UpdateRepoHookHandlers.php rename to client/includes/Hooks/UpdateRepoHookHandlers.php diff --git a/client/tests/phpunit/includes/hooks/DeletePageNoticeCreatorTest.php b/client/tests/phpunit/includes/hooks/DeletePageNoticeCreatorTest.php index 4b1aaa6..e82d96a 100644 --- a/client/tests/phpunit/includes/hooks/DeletePageNoticeCreatorTest.php +++ b/client/tests/phpunit/includes/hooks/DeletePageNoticeCreatorTest.php @@ -4,12 +4,12 @@ use Language; use Title; -use Wikibase\Client\DeletePageNoticeCreator; +use Wikibase\Client\Hooks\DeletePageNoticeCreator; use Wikibase\Client\RepoLinker; use Wikibase\DataModel\Entity\ItemId; /** - * @covers Wikibase\Client\DeletePageNoticeCreator + * @covers Wikibase\Client\Hooks\DeletePageNoticeCreator * * @group WikibaseClient * @group Wikibase diff --git a/client/tests/phpunit/includes/hooks/MovePageNoticeCreatorTest.php b/client/tests/phpunit/includes/hooks/MovePageNoticeCreatorTest.php index 1a8c193..e262b9e 100644 --- a/client/tests/phpunit/includes/hooks/MovePageNoticeCreatorTest.php +++ b/client/tests/phpunit/includes/hooks/MovePageNoticeCreatorTest.php @@ -4,13 +4,13 @@ use Language; use Title; -use Wikibase\Client\MovePageNoticeCreator; +use Wikibase\Client\Hooks\MovePageNoticeCreator; use Wikibase\Client\RepoLinker; use Wikibase\DataModel\Entity\ItemId; use Wikibase\DataModel\SiteLink; /** - * @covers Wikibase\Client\MovePageNoticeCreator + * @covers Wikibase\Client\Hooks\MovePageNoticeCreator * * @group WikibaseClient * @group Wikibase -- To view, visit https://gerrit.wikimedia.org/r/176660 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If4662170bf8c644d27a32c522d30bd62258eb9a2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Thiemo Mättig (WMDE) <thiemo.maet...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits