Cleanup ServiceWiring/LBFactoryMW interaction
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 18 Sep 2016 01:50:56 +0000 (18:50 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 19 Sep 2016 16:19:06 +0000 (09:19 -0700)
commit5d4b009cfd9e98af358e497fadc86b05d42d763b
tree13c0fe6605662df839f6b66c0cd742dc35612fa1
parent2a00a6e2561d7633540cceb6917dffab560a31d2
Cleanup ServiceWiring/LBFactoryMW interaction

* Move almost all the code to LBFactoryMW and inject the main config.
* Make LBFactoryMW no longer extend anything, which is now pointless.
* Let site admins explicitly set "servers" and "externalServers" arrays.
* Pass in the $wgDBschema field regardless of $wgDBtype. It defaults to
  null, so no one would bother setting it if they did not want to use it.

Change-Id: I51f15c0f5d98a73907c51958bdb82dea76b3e38c
includes/ServiceWiring.php
includes/db/loadbalancer/LBFactoryMW.php