Tpt has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/401082 )

Change subject: Uses PSR-4 autoloader
......................................................................

Uses PSR-4 autoloader

Change-Id: I9758d20d0ef9df40c188574004d5df45968c2417
---
M extension.json
R includes/Index/CustomIndexField.php
R includes/Index/CustomIndexFieldsParser.php
R includes/Index/DatabaseIndexContentLookup.php
R includes/Index/EditIndexPage.php
R includes/Index/IndexContent.php
R includes/Index/IndexContentHandler.php
R includes/Index/IndexContentLookup.php
R includes/Index/IndexDifferenceEngine.php
R includes/Index/IndexEditAction.php
R includes/Index/IndexRedirectContent.php
R includes/Index/IndexSubmitAction.php
R includes/Index/ParserHelper.php
R includes/Index/ProofreadIndexDbConnector.php
R includes/Page/DatabaseIndexForPageLookup.php
R includes/Page/EditPagePage.php
R includes/Page/IndexForPageLookup.php
R includes/Page/PageContent.php
R includes/Page/PageContentBuilder.php
R includes/Page/PageContentHandler.php
R includes/Page/PageDifferenceEngine.php
R includes/Page/PageDisplayHandler.php
R includes/Page/PageEditAction.php
R includes/Page/PageLevel.php
R includes/Page/PageSubmitAction.php
R includes/Page/PageViewAction.php
R includes/Page/ProofreadPageDbConnector.php
R tests/phpunit/Index/CustomIndexFieldsParserTest.php
R tests/phpunit/Index/IndexContentHandlerTest.php
R tests/phpunit/Index/IndexContentLookupMock.php
R tests/phpunit/Index/IndexContentTest.php
R tests/phpunit/Index/IndexRedirectContentTest.php
R tests/phpunit/Index/ParserHelperTest.php
R tests/phpunit/Page/DatabaseIndexForPageLookupTest.php
R tests/phpunit/Page/IndexForPageLookupMock.php
R tests/phpunit/Page/PageContentBuilderTest.php
R tests/phpunit/Page/PageContentHandlerTest.php
R tests/phpunit/Page/PageContentTest.php
R tests/phpunit/Page/PageDisplayHandlerTest.php
R tests/phpunit/Page/PageLevelTest.php
40 files changed, 7 insertions(+), 47 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage 
refs/changes/82/401082/1

diff --git a/extension.json b/extension.json
index 2de9048..0e1f5a5 100644
--- a/extension.json
+++ b/extension.json
@@ -43,60 +43,20 @@
        "ExtensionMessagesFiles": {
                "ProofreadPageAlias": "ProofreadPage.alias.php"
        },
+       "AutoloadNamespaces": {
+               "ProofreadPage\\": "includes/"
+       },
        "AutoloadClasses": {
                "ProofreadPage": "ProofreadPage.body.php",
-               "ProofreadPage\\Context": "includes/Context.php",
-               "ProofreadPage\\ProofreadPageInit": 
"includes/ProofreadPageInit.php",
-               "ProofreadPage\\DiffFormatterUtils": 
"includes/DiffFormatterUtils.php",
-               "ProofreadPage\\FileNotFoundException": 
"includes/FileNotFoundException.php",
-               "ProofreadPage\\PageNumberNotFoundException": 
"includes/PageNumberNotFoundException.php",
-               "ProofreadPage\\FileProvider": "includes/FileProvider.php",
-               "ProofreadPage\\Link": "includes/Link.php",
-               "ProofreadPage\\Index\\CustomIndexField": 
"includes/index/CustomIndexField.php",
-               "ProofreadPage\\Index\\CustomIndexFieldsParser": 
"includes/index/CustomIndexFieldsParser.php",
-               "ProofreadPage\\Index\\IndexContentLookup": 
"includes/index/IndexContentLookup.php",
-               "ProofreadPage\\Index\\DatabaseIndexContentLookup": 
"includes/index/DatabaseIndexContentLookup.php",
-               "ProofreadPage\\Index\\IndexContent": 
"includes/index/IndexContent.php",
-               "ProofreadPage\\Index\\IndexRedirectContent": 
"includes/index/IndexRedirectContent.php",
-               "ProofreadPage\\Index\\IndexContentHandler": 
"includes/index/IndexContentHandler.php",
-               "ProofreadPage\\Index\\IndexDifferenceEngine": 
"includes/index/IndexDifferenceEngine.php",
-               "ProofreadPage\\Index\\IndexEditAction": 
"includes/index/IndexEditAction.php",
-               "ProofreadPage\\Index\\IndexSubmitAction": 
"includes/index/IndexSubmitAction.php",
-               "ProofreadPage\\Index\\ParserHelper": 
"includes/index/ParserHelper.php",
-               "ProofreadPage\\Index\\EditIndexPage": 
"includes/index/EditIndexPage.php",
-               "ProofreadIndexDbConnector": 
"includes/index/ProofreadIndexDbConnector.php",
-               "ProofreadPage\\Pagination\\PaginationFactory": 
"includes/Pagination/PaginationFactory.php",
-               "ProofreadPage\\Pagination\\PageNumber": 
"includes/Pagination/PageNumber.php",
-               "ProofreadPage\\Pagination\\PageList": 
"includes/Pagination/PageList.php",
-               "ProofreadPage\\Pagination\\Pagination": 
"includes/Pagination/Pagination.php",
-               "ProofreadPage\\Pagination\\FilePagination": 
"includes/Pagination/FilePagination.php",
-               "ProofreadPage\\Pagination\\PagePagination": 
"includes/Pagination/PagePagination.php",
-               "ProofreadPage\\Pagination\\PageNotInPaginationException": 
"includes/Pagination/PageNotInPaginationException.php",
-               "ProofreadPageDbConnector": 
"includes/page/ProofreadPageDbConnector.php",
-               "ProofreadPage\\Page\\EditPagePage": 
"includes/page/EditPagePage.php",
-               "ProofreadPage\\Page\\PageContentBuilder": 
"includes/page/PageContentBuilder.php",
-               "ProofreadPage\\Page\\PageContent": 
"includes/page/PageContent.php",
-               "ProofreadPage\\Page\\PageLevel": "includes/page/PageLevel.php",
-               "ProofreadPage\\Page\\PageContentHandler": 
"includes/page/PageContentHandler.php",
-               "ProofreadPage\\Page\\PageEditAction": 
"includes/page/PageEditAction.php",
-               "ProofreadPage\\Page\\PageSubmitAction": 
"includes/page/PageSubmitAction.php",
-               "ProofreadPage\\Page\\PageViewAction": 
"includes/page/PageViewAction.php",
-               "ProofreadPage\\Page\\PageDifferenceEngine": 
"includes/page/PageDifferenceEngine.php",
-               "ProofreadPage\\Page\\PageDisplayHandler": 
"includes/page/PageDisplayHandler.php",
-               "ProofreadPage\\Page\\IndexForPageLookup": 
"includes/page/IndexForPageLookup.php",
-               "ProofreadPage\\Page\\DatabaseIndexForPageLookup": 
"includes/page/DatabaseIndexForPageLookup.php",
-               "ProofreadPage\\Parser\\ParserEntryPoint": 
"includes/Parser/ParserEntryPoint.php",
-               "ProofreadPage\\Parser\\TagParser": 
"includes/Parser/TagParser.php",
-               "ProofreadPage\\Parser\\PagelistTagParser": 
"includes/Parser/PagelistTagParser.php",
-               "ProofreadPage\\Parser\\PagesTagParser": 
"includes/Parser/PagesTagParser.php",
-               "ProofreadPage\\Parser\\PagequalityTagParser": 
"includes/Parser/PagequalityTagParser.php",
+               "ProofreadIndexDbConnector": 
"includes/Index/ProofreadIndexDbConnector.php",
+               "ProofreadPageDbConnector": 
"includes/Page/ProofreadPageDbConnector.php",
                "SpecialProofreadPages": "SpecialProofreadPages.php",
                "SpecialPagesWithoutScans": "SpecialPagesWithoutScans.php",
                "ApiQueryProofread": "ApiQueryProofread.php",
                "ApiQueryProofreadInfo": "ApiQueryProofreadInfo.php",
                "ProofreadPage\\FileProviderMock": 
"tests/phpunit/FileProviderMock.php",
-               "ProofreadPage\\Page\\IndexForPageLookupMock": 
"tests/phpunit/page/IndexForPageLookupMock.php",
-               "ProofreadPage\\Index\\IndexContentLookupMock": 
"tests/phpunit/index/IndexContentLookupMock.php",
+               "ProofreadPage\\Page\\IndexForPageLookupMock": 
"tests/phpunit/Page/IndexForPageLookupMock.php",
+               "ProofreadPage\\Index\\IndexContentLookupMock": 
"tests/phpunit/Index/IndexContentLookupMock.php",
                "ProofreadPageTestCase": 
"tests/phpunit/ProofreadPageTestCase.php",
                "FixProofreadPagePagesContentModel": 
"maintenance/fixProofreadPagePagesContentModel.php",
                "FixProofreadIndexPagesContentModel": 
"maintenance/fixProofreadIndexPagesContentModel.php"
diff --git a/includes/index/CustomIndexField.php 
b/includes/Index/CustomIndexField.php
similarity index 100%
rename from includes/index/CustomIndexField.php
rename to includes/Index/CustomIndexField.php
diff --git a/includes/index/CustomIndexFieldsParser.php 
b/includes/Index/CustomIndexFieldsParser.php
similarity index 100%
rename from includes/index/CustomIndexFieldsParser.php
rename to includes/Index/CustomIndexFieldsParser.php
diff --git a/includes/index/DatabaseIndexContentLookup.php 
b/includes/Index/DatabaseIndexContentLookup.php
similarity index 100%
rename from includes/index/DatabaseIndexContentLookup.php
rename to includes/Index/DatabaseIndexContentLookup.php
diff --git a/includes/index/EditIndexPage.php b/includes/Index/EditIndexPage.php
similarity index 100%
rename from includes/index/EditIndexPage.php
rename to includes/Index/EditIndexPage.php
diff --git a/includes/index/IndexContent.php b/includes/Index/IndexContent.php
similarity index 100%
rename from includes/index/IndexContent.php
rename to includes/Index/IndexContent.php
diff --git a/includes/index/IndexContentHandler.php 
b/includes/Index/IndexContentHandler.php
similarity index 100%
rename from includes/index/IndexContentHandler.php
rename to includes/Index/IndexContentHandler.php
diff --git a/includes/index/IndexContentLookup.php 
b/includes/Index/IndexContentLookup.php
similarity index 100%
rename from includes/index/IndexContentLookup.php
rename to includes/Index/IndexContentLookup.php
diff --git a/includes/index/IndexDifferenceEngine.php 
b/includes/Index/IndexDifferenceEngine.php
similarity index 100%
rename from includes/index/IndexDifferenceEngine.php
rename to includes/Index/IndexDifferenceEngine.php
diff --git a/includes/index/IndexEditAction.php 
b/includes/Index/IndexEditAction.php
similarity index 100%
rename from includes/index/IndexEditAction.php
rename to includes/Index/IndexEditAction.php
diff --git a/includes/index/IndexRedirectContent.php 
b/includes/Index/IndexRedirectContent.php
similarity index 100%
rename from includes/index/IndexRedirectContent.php
rename to includes/Index/IndexRedirectContent.php
diff --git a/includes/index/IndexSubmitAction.php 
b/includes/Index/IndexSubmitAction.php
similarity index 100%
rename from includes/index/IndexSubmitAction.php
rename to includes/Index/IndexSubmitAction.php
diff --git a/includes/index/ParserHelper.php b/includes/Index/ParserHelper.php
similarity index 100%
rename from includes/index/ParserHelper.php
rename to includes/Index/ParserHelper.php
diff --git a/includes/index/ProofreadIndexDbConnector.php 
b/includes/Index/ProofreadIndexDbConnector.php
similarity index 100%
rename from includes/index/ProofreadIndexDbConnector.php
rename to includes/Index/ProofreadIndexDbConnector.php
diff --git a/includes/page/DatabaseIndexForPageLookup.php 
b/includes/Page/DatabaseIndexForPageLookup.php
similarity index 100%
rename from includes/page/DatabaseIndexForPageLookup.php
rename to includes/Page/DatabaseIndexForPageLookup.php
diff --git a/includes/page/EditPagePage.php b/includes/Page/EditPagePage.php
similarity index 100%
rename from includes/page/EditPagePage.php
rename to includes/Page/EditPagePage.php
diff --git a/includes/page/IndexForPageLookup.php 
b/includes/Page/IndexForPageLookup.php
similarity index 100%
rename from includes/page/IndexForPageLookup.php
rename to includes/Page/IndexForPageLookup.php
diff --git a/includes/page/PageContent.php b/includes/Page/PageContent.php
similarity index 100%
rename from includes/page/PageContent.php
rename to includes/Page/PageContent.php
diff --git a/includes/page/PageContentBuilder.php 
b/includes/Page/PageContentBuilder.php
similarity index 100%
rename from includes/page/PageContentBuilder.php
rename to includes/Page/PageContentBuilder.php
diff --git a/includes/page/PageContentHandler.php 
b/includes/Page/PageContentHandler.php
similarity index 100%
rename from includes/page/PageContentHandler.php
rename to includes/Page/PageContentHandler.php
diff --git a/includes/page/PageDifferenceEngine.php 
b/includes/Page/PageDifferenceEngine.php
similarity index 100%
rename from includes/page/PageDifferenceEngine.php
rename to includes/Page/PageDifferenceEngine.php
diff --git a/includes/page/PageDisplayHandler.php 
b/includes/Page/PageDisplayHandler.php
similarity index 100%
rename from includes/page/PageDisplayHandler.php
rename to includes/Page/PageDisplayHandler.php
diff --git a/includes/page/PageEditAction.php b/includes/Page/PageEditAction.php
similarity index 100%
rename from includes/page/PageEditAction.php
rename to includes/Page/PageEditAction.php
diff --git a/includes/page/PageLevel.php b/includes/Page/PageLevel.php
similarity index 100%
rename from includes/page/PageLevel.php
rename to includes/Page/PageLevel.php
diff --git a/includes/page/PageSubmitAction.php 
b/includes/Page/PageSubmitAction.php
similarity index 100%
rename from includes/page/PageSubmitAction.php
rename to includes/Page/PageSubmitAction.php
diff --git a/includes/page/PageViewAction.php b/includes/Page/PageViewAction.php
similarity index 100%
rename from includes/page/PageViewAction.php
rename to includes/Page/PageViewAction.php
diff --git a/includes/page/ProofreadPageDbConnector.php 
b/includes/Page/ProofreadPageDbConnector.php
similarity index 100%
rename from includes/page/ProofreadPageDbConnector.php
rename to includes/Page/ProofreadPageDbConnector.php
diff --git a/tests/phpunit/index/CustomIndexFieldsParserTest.php 
b/tests/phpunit/Index/CustomIndexFieldsParserTest.php
similarity index 100%
rename from tests/phpunit/index/CustomIndexFieldsParserTest.php
rename to tests/phpunit/Index/CustomIndexFieldsParserTest.php
diff --git a/tests/phpunit/index/IndexContentHandlerTest.php 
b/tests/phpunit/Index/IndexContentHandlerTest.php
similarity index 100%
rename from tests/phpunit/index/IndexContentHandlerTest.php
rename to tests/phpunit/Index/IndexContentHandlerTest.php
diff --git a/tests/phpunit/index/IndexContentLookupMock.php 
b/tests/phpunit/Index/IndexContentLookupMock.php
similarity index 100%
rename from tests/phpunit/index/IndexContentLookupMock.php
rename to tests/phpunit/Index/IndexContentLookupMock.php
diff --git a/tests/phpunit/index/IndexContentTest.php 
b/tests/phpunit/Index/IndexContentTest.php
similarity index 100%
rename from tests/phpunit/index/IndexContentTest.php
rename to tests/phpunit/Index/IndexContentTest.php
diff --git a/tests/phpunit/index/IndexRedirectContentTest.php 
b/tests/phpunit/Index/IndexRedirectContentTest.php
similarity index 100%
rename from tests/phpunit/index/IndexRedirectContentTest.php
rename to tests/phpunit/Index/IndexRedirectContentTest.php
diff --git a/tests/phpunit/index/ParserHelperTest.php 
b/tests/phpunit/Index/ParserHelperTest.php
similarity index 100%
rename from tests/phpunit/index/ParserHelperTest.php
rename to tests/phpunit/Index/ParserHelperTest.php
diff --git a/tests/phpunit/page/DatabaseIndexForPageLookupTest.php 
b/tests/phpunit/Page/DatabaseIndexForPageLookupTest.php
similarity index 100%
rename from tests/phpunit/page/DatabaseIndexForPageLookupTest.php
rename to tests/phpunit/Page/DatabaseIndexForPageLookupTest.php
diff --git a/tests/phpunit/page/IndexForPageLookupMock.php 
b/tests/phpunit/Page/IndexForPageLookupMock.php
similarity index 100%
rename from tests/phpunit/page/IndexForPageLookupMock.php
rename to tests/phpunit/Page/IndexForPageLookupMock.php
diff --git a/tests/phpunit/page/PageContentBuilderTest.php 
b/tests/phpunit/Page/PageContentBuilderTest.php
similarity index 100%
rename from tests/phpunit/page/PageContentBuilderTest.php
rename to tests/phpunit/Page/PageContentBuilderTest.php
diff --git a/tests/phpunit/page/PageContentHandlerTest.php 
b/tests/phpunit/Page/PageContentHandlerTest.php
similarity index 100%
rename from tests/phpunit/page/PageContentHandlerTest.php
rename to tests/phpunit/Page/PageContentHandlerTest.php
diff --git a/tests/phpunit/page/PageContentTest.php 
b/tests/phpunit/Page/PageContentTest.php
similarity index 100%
rename from tests/phpunit/page/PageContentTest.php
rename to tests/phpunit/Page/PageContentTest.php
diff --git a/tests/phpunit/page/PageDisplayHandlerTest.php 
b/tests/phpunit/Page/PageDisplayHandlerTest.php
similarity index 100%
rename from tests/phpunit/page/PageDisplayHandlerTest.php
rename to tests/phpunit/Page/PageDisplayHandlerTest.php
diff --git a/tests/phpunit/page/PageLevelTest.php 
b/tests/phpunit/Page/PageLevelTest.php
similarity index 100%
rename from tests/phpunit/page/PageLevelTest.php
rename to tests/phpunit/Page/PageLevelTest.php

-- 
To view, visit https://gerrit.wikimedia.org/r/401082
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9758d20d0ef9df40c188574004d5df45968c2417
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to