Fully extract services framework as a library
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Mon, 10 Dec 2018 17:33:38 +0000 (18:33 +0100)
committerLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Wed, 16 Jan 2019 16:31:05 +0000 (17:31 +0100)
commit7585985a463964d56ebb4b56b31c467fd98a7684
treeeefba2855c819c8d0bb636151a694a6c9d820317
parent1b52ddd9c603c403d98a255dae998621e0f62e21
Fully extract services framework as a library

This code doesn’t use any MediaWiki-specific code, so rename
MediaWiki\Services to Wikimedia\Services and move it below libs/. (Of
course, this does not apply to the MediaWikiServices subclass.)

Class aliases are added to retain backwards compatibity for now.

Bug: T211608
Change-Id: Ic14ea28ef21c359695b309d4293dbaaf5deedc09
30 files changed:
RELEASE-NOTES-1.33
autoload.php
includes/AutoLoader.php
includes/MediaWikiServices.php
includes/config/ConfigFactory.php
includes/config/ConfigRepository.php
includes/installer/Installer.php
includes/libs/services/CannotReplaceActiveServiceException.php [new file with mode: 0644]
includes/libs/services/ContainerDisabledException.php [new file with mode: 0644]
includes/libs/services/DestructibleService.php [new file with mode: 0644]
includes/libs/services/NoSuchServiceException.php [new file with mode: 0644]
includes/libs/services/SalvageableService.php [new file with mode: 0644]
includes/libs/services/ServiceAlreadyDefinedException.php [new file with mode: 0644]
includes/libs/services/ServiceContainer.php [new file with mode: 0644]
includes/libs/services/ServiceDisabledException.php [new file with mode: 0644]
includes/services/CannotReplaceActiveServiceException.php [deleted file]
includes/services/ContainerDisabledException.php [deleted file]
includes/services/DestructibleService.php [deleted file]
includes/services/NoSuchServiceException.php [deleted file]
includes/services/SalvageableService.php [deleted file]
includes/services/ServiceAlreadyDefinedException.php [deleted file]
includes/services/ServiceContainer.php [deleted file]
includes/services/ServiceDisabledException.php [deleted file]
tests/phpunit/includes/MediaWikiServicesTest.php
tests/phpunit/includes/libs/services/ServiceContainerTest.php [new file with mode: 0644]
tests/phpunit/includes/libs/services/TestWiring1.php [new file with mode: 0644]
tests/phpunit/includes/libs/services/TestWiring2.php [new file with mode: 0644]
tests/phpunit/includes/services/ServiceContainerTest.php [deleted file]
tests/phpunit/includes/services/TestWiring1.php [deleted file]
tests/phpunit/includes/services/TestWiring2.php [deleted file]