stable

Clone or download

Read-only

refactor: Encapsulate {Readers,Writers}Retriever

Introduce a new object that provides readers and writers (and later admins and bots, stay tuned) instead of having two separate variables/retriever. Part of story #25733: manage mediawiki permissions Change-Id: Ideac6f0cb55f402dfb605befd7b32aa6324cdd21

Modified Files

Name
M plugins/mediawiki_standalone/include/Permissions/Admin/AdminPermissionsPresenterBuilder.php +6 −6 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/PermissionPerGroupServicePaneBuilder.php +28 −18 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/ProjectPermissions.php +37 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/ProjectPermissionsRetriever.php +40 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/UserPermissionsBuilder.php +5 −4 Go to diff View file
M plugins/mediawiki_standalone/include/REST/v1/MediawikiStandaloneProjectResource.php +5 −2 Go to diff View file
M plugins/mediawiki_standalone/include/XML/XMLMediaWikiExporter.php +13 −14 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +19 −12 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/AdminPermissionsControllerTest.php +13 −6 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/AdminPermissionsPresenterBuilderTest.php +5 −2 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/PermissionPerGroupServicePaneBuilderTest.php +5 −7 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/UserPermissionsBuilderTest.php +10 −6 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/XML/XMLMediaWikiExporterTest.php +5 −2 Go to diff View file