Manual:$wgRCEngines/zh
Deprecated: 这个被弃用功能不应再被使用,但出于向后兼容性的原因仍然可用。 |
最近的更改、新页面、监视列表和历史记录: $wgRCEngines | |
---|---|
Legacy mapping from URI schemes to RCFeed subclasses. |
|
引进版本: | 1.22.0 (Gerrit change 81128; git #ffc71cb6) |
弃用版本: | 1.38.0 (Gerrit change 590684; git #f8ecea1e) |
移除版本: | 仍在使用 |
允许的值: | 未指定 |
默认值: | (参见下方) |
其他设置: 按首字母排序 | 按功能排序 |
Details
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.
变量$wgStreamLoggers
被引入并在MediaWiki 1.22 alpha中被更名为$wgRCEngines
。
Default value
MediaWiki版本: | ≥ 1.31 |
$wgRCEngines = [
'redis' => RedisPubSubFeedEngine::class,
'udp' => UDPRCFeedEngine::class,
];
MediaWiki版本: | 1.22 – 1.30 |
$wgRCEngines = [
'redis' => 'RedisPubSubFeedEngine',
'udp' => 'UDPRCFeedEngine',
];
Usage
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.