*/ class SiteSQLStore extends CachingSiteStore { /** * @since 1.21 * @deprecated 1.25 Construct a SiteStore instance directly instead. * * @param null $sitesTable Unused * @param BagOStuff|null $cache * * @return SiteStore */ public static function newInstance( $sitesTable = null, BagOStuff $cache = null ) { if ( $sitesTable !== null ) { throw new InvalidArgumentException( __METHOD__ . ': $sitesTable parameter is unused and must be null' ); } if ( $cache === null ) { $cache = wfGetCache( wfIsHHVM() ? CACHE_ACCEL : CACHE_ANYTHING ); } $siteStore = new DBSiteStore(); return new static( $siteStore, $cache ); } }