Merge "Inject Profiler into Database objects"
[lhc/web/wiklou.git] / includes / db / loadbalancer / LBFactoryMW.php
index 16faeb7..1063eef 100644 (file)
@@ -42,6 +42,7 @@ abstract class LBFactoryMW extends LBFactory implements DestructibleService {
                $defaults = [
                        'localDomain' => new DatabaseDomain( $wgDBname, null, $wgDBprefix ),
                        'hostname' => wfHostname(),
+                       'profiler' => Profiler::instance(),
                        'trxProfiler' => Profiler::instance()->getTransactionProfiler(),
                        'replLogger' => LoggerFactory::getInstance( 'DBReplication' ),
                        'queryLogger' => LoggerFactory::getInstance( 'wfLogDBError' ),