60 return MediaWikiServices::getInstance()
61 ->getExternalStoreFactory()
62 ->getStore( $proto, $params );
79 return MediaWikiServices::getInstance()
80 ->getExternalStoreAccess()
81 ->fetchFromURL( $url, $params );
99 public static function insert( $url, $data, array $params = [] ) {
101 $esFactory = MediaWikiServices::getInstance()->getExternalStoreFactory();
102 $location = $esFactory->getStoreLocationFromUrl( $url );
104 return $esFactory->getStoreForUrl( $url, $params )->store( $location, $data );
120 return MediaWikiServices::getInstance()->getExternalStoreAccess()->fetchFromURLs( $urls );
136 return MediaWikiServices::getInstance()->getExternalStoreAccess()->insert( $data, $params );
153 return MediaWikiServices::getInstance()
154 ->getExternalStoreAccess()
155 ->insert( $data, $params, $tryStores );
166 return MediaWikiServices::getInstance()
167 ->getExternalStoreAccess()
168 ->insert( $data, [
'domain' => $wiki ] );