56 $channelKey = isset( $this->configByChannel[$channel] )
60 if ( !isset( $this->relayers[$channelKey] ) ) {
61 if ( !isset( $this->configByChannel[$channelKey] ) ) {
62 throw new UnexpectedValueException(
"No config for '$channelKey'" );
65 $config = $this->configByChannel[$channelKey];
66 $class = $config[
'class'];
68 $this->relayers[$channelKey] =
new $class( $config );
71 return $this->relayers[$channelKey];