wiki.techinc.nl/includes/db
Tim Starling 820f46964f A service for read-only mode
Introduce a service to represent wfReadOnly() and friends.

It's necessary to have two service instances, one for wfReadOnly() and
one for wfConfiguredReadOnlyReason(), to avoid a circular dependency,
since LoadBalancer needs the configured reason during construction, but
wfReadOnly() needs to query the currently active load balancer.

Not having a cache of the configuration makes it possible to dynamically
change the configuration. Ideally things would not change the
configuration, and I removed such instances in core, but to support
extensions, I added a test ensuring that the configuration can be changed.

Change-Id: I9bbee946c10742526d3423208efd68cb3cc5a7ee
2017-04-19 12:27:06 -07:00
..
CloneDatabase.php Move IDatabase/IMaintainableDatabase to Rdbms namespace 2017-03-28 15:32:38 -07:00
DatabaseOracle.php Move DB errors to Rdbms namespace 2017-04-15 10:47:41 -07:00
MWLBFactory.php A service for read-only mode 2017-04-19 12:27:06 -07:00
ORAField.php Move Field classes to Rdbms namespace 2017-02-16 01:14:37 +00:00
ORAResult.php Move IDatabase/IMaintainableDatabase to Rdbms namespace 2017-03-28 15:32:38 -07:00