*
* Represents files in a repository.
*/
+use Wikimedia\AtEase\AtEase;
use MediaWiki\MediaWikiServices;
/**
$this->repo->descriptionCacheExpiry ?: $cache::TTL_UNCACHEABLE,
function ( $oldValue, &$ttl, array &$setOpts ) use ( $renderUrl, $fname ) {
wfDebug( "Fetching shared description from $renderUrl\n" );
- $res = Http::get( $renderUrl, [], $fname );
+ $res = MediaWikiServices::getInstance()->getHttpRequestFactory()->
+ get( $renderUrl, [], $fname );
if ( !$res ) {
$ttl = WANObjectCache::TTL_UNCACHEABLE;
}
$metadata = $this->getMetadata();
if ( is_string( $metadata ) ) {
- $metadata = Wikimedia\quietCall( 'unserialize', $metadata );
+ $metadata = AtEase::quietCall( 'unserialize', $metadata );
}
if ( !is_array( $metadata ) ) {