X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2Fbenchmarks%2Fbench_HTTP_HTTPS.php;h=b7d584ad2d7c641c12446ba9934b25f29806f46a;hb=b23614b95fa78076e3e13944382e65b2e4072841;hp=5e1feb739bf1e3f35dda140aedde11438fccf72c;hpb=6f7e982df6479e27c3b17f2deda8404ef55f50e6;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/benchmarks/bench_HTTP_HTTPS.php b/maintenance/benchmarks/bench_HTTP_HTTPS.php index 5e1feb739b..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