49 $channelKey = isset( $this->configByChannel[$channel] )
53 if ( !isset( $this->relayers[$channelKey] ) ) {
54 if ( !isset( $this->configByChannel[$channelKey] ) ) {
55 throw new UnexpectedValueException(
"No config for '$channelKey'" );
58 $config = $this->configByChannel[$channelKey];
59 $class = $config[
'class'];
61 $this->relayers[$channelKey] =
new $class( $config );
64 return $this->relayers[$channelKey];