Rename BlockRestriction -> BlockRestrictionStore and wire it up as a service
authorDayllan Maza <dmaza@wikimedia.org>
Thu, 11 Apr 2019 19:54:10 +0000 (15:54 -0400)
committerDayllan Maza <dmaza@wikimedia.org>
Wed, 17 Apr 2019 01:55:15 +0000 (21:55 -0400)
commitde67ee197220132cb124809e214b088a99d974a5
treee21afc204bd2999a661c8854ead63c48ecd4d1e7
parent3af4b1990825d62ace2946a4d6b769656c565dbf
Rename BlockRestriction -> BlockRestrictionStore and wire it up as a service

BlockRestriction was initially created as a static class and there is no reason
why this shouldn't be available in the service container.

Also renaming as BlockRestrictionStore to keep up with the new emerging naming patterns.

Bug: T219684
Change-Id: If0b954f286d4759de2e3e41a0eb788e74bd72996
12 files changed:
includes/Block.php
includes/MediaWikiServices.php
includes/ServiceWiring.php
includes/api/ApiQueryBlocks.php
includes/block/BlockRestriction.php [deleted file]
includes/block/BlockRestrictionStore.php [new file with mode: 0644]
includes/specials/SpecialBlock.php
includes/specials/pagers/BlockListPager.php
tests/phpunit/includes/BlockTest.php
tests/phpunit/includes/block/BlockRestrictionStoreTest.php [new file with mode: 0644]
tests/phpunit/includes/block/BlockRestrictionTest.php [deleted file]
tests/phpunit/includes/specials/SpecialBlockTest.php