stable

Clone or download

Read-only

chore: Service aware interface

This commit introduce a new interface meant to be implemented by all services that provide a Service. The purpose of the interface is to ensure that all service-related events are known to the implementers and that those left un-implemented are done intentionaly. When a plugin implements the interface, it will automatically register the callbacks without having to explicitely declare them in getHooksAndCallback method. As of now, only MediawikiStandalone and Program are covered to limit the scope, the work for the other services will be done in a dedicated commit. Part of: story #24228 create/update/delete mediawiki-standalone in my project Change-Id: I3e31a06ad210acd4d6d063abdf19ebfbcfa3e98f

Modified Files

Name
M plugins/mediawiki_standalone/include/Configuration/MediaWikiNewOAuth2AppBuilder.php +2 −1 Go to diff View file
M plugins/mediawiki_standalone/include/Configuration/MediaWikiOAuth2AppSecretGeneratorDBStore.php +2 −1 Go to diff View file
M plugins/mediawiki_standalone/include/Service/MediawikiStandaloneService.php +5 −2 Go to diff View file
M plugins/mediawiki_standalone/include/Service/ServiceActivationHandler.php +6 −2 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +20 −31 Go to diff View file
M plugins/program_management/include/Adapter/ProjectAdmin/PermissionPerGroupSectionBuilder.php +2 −1 Go to diff View file
M plugins/program_management/include/Adapter/Team/TeamDao.php +2 −1 Go to diff View file
M plugins/program_management/include/DisplayAdminProgramManagementController.php +1 −2 Go to diff View file
M plugins/program_management/include/DisplayPlanIterationsController.php +1 −2 Go to diff View file
M plugins/program_management/include/DisplayProgramBacklogController.php +1 −2 Go to diff View file
M plugins/program_management/include/ProgramService.php +28 −1 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +38 −31 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Events/ProjectServiceBeforeActivationProxyTest.php +3 −2 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Events/ServiceDisabledCollectorProxyTest.php +3 −2 Go to diff View file
M plugins/program_management/tests/unit/DisplayAdminProgramManagementControllerTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/DisplayPlanIterationsControllerTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/DisplayProgramBacklogControllerTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Domain/Service/ProjectServiceBeforeActivationHandlerTest.php +8 −7 Go to diff View file
M plugins/program_management/tests/unit/Domain/Service/ServiceDisabledCollectorHandlerTest.php +9 −4 Go to diff View file
M src/common/Plugin/Plugin.php +23 −2 Go to diff View file
M src/common/Project/Service.class.php +7 −0 Go to diff View file
M src/common/Project/Service/AddMissingService.php +9 −0 Go to diff View file
A src/common/Project/Service/PluginAddMissingServiceTrait.php +55 −0 Go to diff View file
A src/common/Project/Service/PluginWithService.php +53 −0 Go to diff View file
A src/common/Project/Service/ServiceForCreation.php +32 −0 Go to diff View file
M tests/unit/common/Plugin/PluginTest.php +36 −0 Go to diff View file