35 $channelKey = isset( $this->configByChannel[$channel] )
39 if ( !isset( $this->relayers[$channelKey] ) ) {
40 if ( !isset( $this->configByChannel[$channelKey] ) ) {
41 throw new UnexpectedValueException(
"No config for '$channelKey'" );
44 $config = $this->configByChannel[$channelKey];
45 $class = $config[
'class'];
47 $this->relayers[$channelKey] =
new $class( $config );
50 return $this->relayers[$channelKey];