X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2Fbenchmarks%2Fbench_HTTP_HTTPS.php;h=b7d584ad2d7c641c12446ba9934b25f29806f46a;hb=b23614b95fa78076e3e13944382e65b2e4072841;hp=0e3cd73d0cd1b71281627346b8bc7e1ac5af0f99;hpb=eb72adcb4e28eedc1806d845355856bd6f97dadb;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/benchmarks/bench_HTTP_HTTPS.php b/maintenance/benchmarks/bench_HTTP_HTTPS.php index 0e3cd73d0c..b7d584ad2d 100644 --- a/maintenance/benchmarks/bench_HTTP_HTTPS.php +++ b/maintenance/benchmarks/bench_HTTP_HTTPS.php @@ -24,6 +24,8 @@ * @author Platonides */ +use MediaWiki\MediaWikiServices; + require_once __DIR__ . '/Benchmarker.php'; /** @@ -45,7 +47,8 @@ class BenchHttpHttps extends Benchmarker { } private function doRequest( $proto ) { - Http::get( "$proto://localhost/", [], __METHOD__ ); + MediaWikiServices::getInstance()->getHttpRequestFactory()-> + get( "$proto://localhost/", [], __METHOD__ ); } // bench function 1 @@ -59,5 +62,5 @@ class BenchHttpHttps extends Benchmarker { } } -$maintClass = 'BenchHttpHttps'; +$maintClass = BenchHttpHttps::class; require_once RUN_MAINTENANCE_IF_MAIN;