Merge "Use HttpRequestFactory::createMultiClient()"

This commit is contained in:
jenkins-bot 2020-05-21 20:38:03 +00:00 committed by Gerrit Code Review
commit 8ac4b48e96

View file

@ -88,7 +88,8 @@ trait ApiParsoidTrait {
*/
protected function getVRSClient() {
if ( !$this->serviceClient ) {
$this->serviceClient = new VirtualRESTServiceClient( new MultiHttpClient( [] ) );
$this->serviceClient = new VirtualRESTServiceClient(
MediaWikiServices::getInstance()->getHttpRequestFactory()->createMultiClient() );
$this->serviceClient->mount( '/restbase/', $this->getVRSObject() );
}
return $this->serviceClient;