Rename Block to MediaWiki\Block\DatabaseBlock
authorThalia <thalia.e.chan@googlemail.com>
Mon, 13 May 2019 14:18:07 +0000 (15:18 +0100)
committerThalia <thalia.e.chan@googlemail.com>
Tue, 28 May 2019 11:20:48 +0000 (12:20 +0100)
commite65a5b58821873fdfdd15a4de6c1590fbea9a5fd
tree0478aeb190749f06549befce2734d6d9014239fd
parentf4de088e6322d969b88edeb1c417549849c3803d
Rename Block to MediaWiki\Block\DatabaseBlock

Keep Block as a deprecated class alias for DatabaseBlock.
Update calls to the Block constructor and Block static
methods from external classes.

Also update documentation in several places that refer to
blocks as Blocks.

Bug: T222737
Change-Id: I6d96b63ca0a84bee19486471e0a16a53a79d768a
49 files changed:
RELEASE-NOTES-1.34
autoload.php
includes/Block.php [deleted file]
includes/EditPage.php
includes/api/ApiBase.php
includes/api/ApiBlock.php
includes/api/ApiUnblock.php
includes/auth/AuthManager.php
includes/auth/CheckBlocksSecondaryAuthenticationProvider.php
includes/block/AbstractBlock.php
includes/block/BlockManager.php
includes/block/BlockRestrictionStore.php
includes/block/DatabaseBlock.php [new file with mode: 0644]
includes/block/Restriction/NamespaceRestriction.php
includes/block/Restriction/PageRestriction.php
includes/page/Article.php
includes/specials/SpecialBlock.php
includes/specials/SpecialBlockList.php
includes/specials/SpecialContributions.php
includes/specials/SpecialDeletedContributions.php
includes/specials/SpecialUnblock.php
includes/specials/pagers/BlockListPager.php
includes/user/User.php
maintenance/cleanupBlocks.php
tests/phpunit/includes/BlockTest.php [deleted file]
tests/phpunit/includes/Permissions/PermissionManagerTest.php
tests/phpunit/includes/TitlePermissionTest.php
tests/phpunit/includes/actions/ActionTest.php
tests/phpunit/includes/api/ApiBaseTest.php
tests/phpunit/includes/api/ApiBlockInfoTraitTest.php
tests/phpunit/includes/api/ApiBlockTest.php
tests/phpunit/includes/api/ApiEditPageTest.php
tests/phpunit/includes/api/ApiMoveTest.php
tests/phpunit/includes/api/ApiQueryBlocksTest.php
tests/phpunit/includes/api/ApiQueryInfoTest.php
tests/phpunit/includes/api/ApiQueryUserInfoTest.php
tests/phpunit/includes/api/ApiUnblockTest.php
tests/phpunit/includes/api/ApiUserrightsTest.php
tests/phpunit/includes/auth/AuthManagerTest.php
tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php
tests/phpunit/includes/block/BlockManagerTest.php
tests/phpunit/includes/block/BlockRestrictionStoreTest.php
tests/phpunit/includes/block/DatabaseBlockTest.php [new file with mode: 0644]
tests/phpunit/includes/specialpage/FormSpecialPageTestCase.php
tests/phpunit/includes/specials/SpecialBlockTest.php
tests/phpunit/includes/specials/pagers/BlockListPagerTest.php
tests/phpunit/includes/user/LocalIdLookupTest.php
tests/phpunit/includes/user/PasswordResetTest.php
tests/phpunit/includes/user/UserTest.php