mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Use HttpRequestFactory::createMultiClient()"
This commit is contained in:
commit
8ac4b48e96
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue