This commit is contained in:
Marcel Pociot 2018-11-22 23:59:32 +01:00
parent 20b92fddfc
commit c9b9d488ab
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ class ChannelManager
public function findOrCreate(string $appId, string $channelId): Channel public function findOrCreate(string $appId, string $channelId): Channel
{ {
if (!isset($this->channels[$appId][$channelId])) { if (!isset($this->channels[$appId][$channelId])) {
$this->channels[$appId][$channelId] = (new ReflectionClass($this->detectChannelClass($channelId)))->newInstance($channelId); $this->channels[$appId][$channelId] = (new ReflectionClass($this->detectChannelClass($channelId)))
->newInstance($channelId);
} }
return $this->channels[$appId][$channelId]; return $this->channels[$appId][$channelId];