Create factory for MWHttpRequest
[lhc/web/wiklou.git] / includes / ServiceWiring.php
index 79e5b84..dab3b5c 100644 (file)
@@ -508,6 +508,10 @@ return [
                return new DefaultPreferencesFactory( $config, $wgContLang, $authManager, $linkRenderer );
        },
 
+       'HttpRequestFactory' => function ( MediaWikiServices $services ) {
+               return new \MediaWiki\Http\HttpRequestFactory();
+       },
+
        ///////////////////////////////////////////////////////////////////////////
        // NOTE: When adding a service here, don't forget to add a getter function
        // in the MediaWikiServices class. The convenience getter should just call