23use Wikimedia\Assert\Assert;
41 $this->replacements[$code][] = [
$title, $msg ];
46 Assert::parameterType( __CLASS__, $update,
'$update' );
47 '@phan-var self $update';
49 foreach ( $update->replacements as $code => $messages ) {
50 $this->replacements[$code] = array_merge( $this->replacements[$code] ?? [], $messages );
55 $messageCache = MessageCache::singleton();
57 $messageCache->refreshAndReplaceInternal( $code,
$replacements );
Message cache purging and in-place update handler for specific message page changes.
array[] $replacements
Map of (language code => list of (DB key, DB key without code))
merge(MergeableUpdate $update)
Merge this update with $update.
doUpdate()
Perform the actual work.
__construct( $code, $title, $msg)
Interface that deferrable updates should implement.
Interface that deferrable updates can implement to signal that updates can be combined.