21 $this->configByChannel = $config;
29 return MediaWikiServices::getInstance()->getEventRelayerGroup();
37 $channelKey = isset( $this->configByChannel[$channel] )
41 if ( !isset( $this->relayers[$channelKey] ) ) {
42 if ( !isset( $this->configByChannel[$channelKey] ) ) {
43 throw new UnexpectedValueException(
"No config for '$channelKey'" );
46 $config = $this->configByChannel[$channelKey];
47 $class = $config[
'class'];
49 $this->relayers[$channelKey] =
new $class( $config );
52 return $this->relayers[$channelKey];