Add LBFactory::closeAll() method
[lhc/web/wiklou.git] / includes / db / loadbalancer / LBFactory.php
index b78793f..5b048b5 100644 (file)
@@ -452,6 +452,15 @@ abstract class LBFactory implements DestructibleService {
                        }
                } );
        }
+
+       /**
+        * Close all open database connections on all open load balancers.
+        * @since 1.28
+        */
+       public function closeAll() {
+               $this->forEachLBCallMethod( 'closeAll', [] );
+       }
+
 }
 
 /**