X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Floadmonitor%2FLoadMonitorNull.php;h=c4e25dc24a7b0e2236288c1ebe25fb3fc7675464;hb=f7e1770fb832aa77bf4e16ce8cc815f2b24dd10d;hp=8062001eaed456eb437218b2b0954d96f16bbc19;hpb=5e4facec788bd45586c66a04b6fcb26c83f46902;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/loadmonitor/LoadMonitorNull.php b/includes/libs/rdbms/loadmonitor/LoadMonitorNull.php index 8062001eae..8bbf9e5de3 100644 --- a/includes/libs/rdbms/loadmonitor/LoadMonitorNull.php +++ b/includes/libs/rdbms/loadmonitor/LoadMonitorNull.php @@ -18,25 +18,28 @@ * @file * @ingroup Database */ + +namespace Wikimedia\Rdbms; + use Psr\Log\LoggerInterface; +use BagOStuff; class LoadMonitorNull implements ILoadMonitor { - public function __construct( ILoadBalancer $lb, BagOStuff $sCache, BagOStuff $cCache ) { - + public function __construct( + ILoadBalancer $lb, BagOStuff $sCache, BagOStuff $cCache, array $options = [] + ) { } public function setLogger( LoggerInterface $logger ) { } - public function scaleLoads( &$loads, $group = false, $domain = false ) { - + public function scaleLoads( array &$loads, $domain ) { } - public function getLagTimes( $serverIndexes, $domain ) { + public function getLagTimes( array $serverIndexes, $domain ) { return array_fill_keys( $serverIndexes, 0 ); } public function clearCaches() { - } }