mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +00:00
Merge "Use HttpRequestFactory::createMultiClient()"
This commit is contained in:
commit
070a5dc475
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
use MediaWiki\Logger\LoggerFactory;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Session\SessionManager;
|
||||
|
||||
class EchoForeignWikiRequest {
|
||||
|
@ -193,7 +194,7 @@ class EchoForeignWikiRequest {
|
|||
* @throws Exception
|
||||
*/
|
||||
protected function doRequests( array $reqs ) {
|
||||
$http = new MultiHttpClient( [] );
|
||||
$http = MediaWikiServices::getInstance()->getHttpRequestFactory()->createMultiClient();
|
||||
$responses = $http->runMulti( $reqs );
|
||||
|
||||
$results = [];
|
||||
|
|
Loading…
Reference in a new issue