Spin off from. In that issue, we want to swap the ModuleHandler service during update.php, and use that to change what enable/disable/uninstall do. But to do that, we need to make the procedural functions just wrappers around the service methods. This issue is for doing that.
Please credit chx on commit, since he wrote the initial patch from which this is extracted.
FAILED: [[SimpleTest]]: [MySQL] 57,153 pass(es), 52 fail(s), and 53 exception(s).
FAILED: [[SimpleTest]]: [MySQL] 55,033 pass(es), 45 fail(s), and 46 exception(s).
PASSED: [[SimpleTest]]: [MySQL] 55,495 pass(es).
PASSED: [[SimpleTest]]: [MySQL] 56,226 pass(es).