MediaWiki REL1_31
SiteSQLStore.php
Go to the documentation of this file.
1<?php
2
30
46 public static function newInstance( $sitesTable = null, BagOStuff $cache = null ) {
47 if ( $sitesTable !== null ) {
48 throw new InvalidArgumentException(
49 __METHOD__ . ': $sitesTable parameter is unused and must be null'
50 );
51 }
52
53 // NOTE: we silently ignore $cache for now, since some existing callers
54 // specify it. If we break compatibility with them, we could just as
55 // well just remove this class.
56
57 return \MediaWiki\MediaWikiServices::getInstance()->getSiteStore();
58 }
59
60}
interface is intended to be more or less compatible with the PHP memcached client.
Definition BagOStuff.php:47
static newInstance( $sitesTable=null, BagOStuff $cache=null)
Returns the global SiteStore instance.
$cache
Definition mcc.php:33