- private function getConnection() {
- return $this->loadBalancer->getConnection( DB_REPLICA, [ 'watchlist' ] );
+ private function getExtensions() {
+ if ( $this->extensions === null ) {
+ $this->extensions = [];
+ Hooks::run( 'WatchedItemQueryServiceExtensions', [ &$this->extensions, $this ] );
+ }
+ return $this->extensions;