Jump to content

Podręcznik:$wgRCEngines

From mediawiki.org
This page is a translated version of the page Manual:$wgRCEngines and the translation is 38% complete.
Recent changes, new pages, watchlist and history: $wgRCEngines
Legacy mapping from URI schemes to RCFeed subclasses.
Wprowadzono w wersji:1.22.0 (Gerrit change 81128; git #ffc71cb6)
Przestarzałe w wersji:1.38.0 (Gerrit change 590684; git #f8ecea1e)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:nie określono
Domyślna wartość:(patrz poniżej)

Szczegóły

Legacy mapping from URI schemes to RCFeed subclasses.

Used for $wgRCFeeds (in RecentChange::factory) to determine which class to use if 'class' is not set, but 'uri' is.

This variable was introduced as $wgStreamLoggers and was renamed to $wgRCEngines in MediaWiki 1.22 alpha.

Default value

Wersja MediaWiki:
1.31
$wgRCEngines = [
	'redis' => RedisPubSubFeedEngine::class,
	'udp' => UDPRCFeedEngine::class,
];
Wersje MediaWiki:
1.22 – 1.30
$wgRCEngines = [
	'redis' => 'RedisPubSubFeedEngine',
	'udp' => 'UDPRCFeedEngine',
];

Użycie

This variable is an associated array mapping the URI protocol to the fully qualified class name that will handle that protocol.

This represents MediaWiki's built-in engine for sending RC updates over a UDP connection. More engines can be added by adding more keys or overriding existing ones.

Zobacz też