39 $this->configByChannel = $config;
47 return MediaWikiServices::getInstance()->getEventRelayerGroup();
55 $channelKey = isset( $this->configByChannel[$channel] )
59 if ( !isset( $this->relayers[$channelKey] ) ) {
60 if ( !isset( $this->configByChannel[$channelKey] ) ) {
61 throw new UnexpectedValueException(
"No config for '$channelKey'" );
64 $config = $this->configByChannel[$channelKey];
65 $class = $config[
'class'];
67 $this->relayers[$channelKey] =
new $class( $config );
70 return $this->relayers[$channelKey];