-
-
Notifications
You must be signed in to change notification settings - Fork 263
Expand file tree
/
Copy pathEventStreamConfig.php
More file actions
32 lines (28 loc) · 742 Bytes
/
EventStreamConfig.php
File metadata and controls
32 lines (28 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// Stream config default settings.
// The EventStreamConfig extension will add these
// settings to each entry in wgEventStreams if
// the entry does not already have the setting.
$wgEventStreamsDefaultSettings = [
'topic_prefixes' => [ 'default.' ],
'canary_events_enabled' => true,
];
if ( $cwPrivate ) {
$wgEventStreamsDefaultSettings += [
'producers' => [
'mediawiki_eventbus' => [
'enabled' => false,
],
]
];
}
$wgEventStreams = [
'/^mediawiki\\.job\\..+/' => [
'schema_title' => 'mediawiki/job',
'destination_event_service' => 'eventgate',
'canary_events_enabled' => false,
],
];
if ( $cwPrivate ) {
$wgEventStreams['/^mediawiki\\.job\\..+/']['producers']['mediawiki_eventbus']['enabled'] = true;
}