|
@@ 36-49 (lines=14) @@
|
| 33 |
|
* |
| 34 |
|
* @return MessageProviderInterface |
| 35 |
|
*/ |
| 36 |
|
public function getMessageProvider($name, $connection) |
| 37 |
|
{ |
| 38 |
|
if (!isset($this->messageProviders[$connection][$name])) { |
| 39 |
|
if (!isset($this->messageProviders[$connection])) { |
| 40 |
|
$this->messageProviders[$connection] = array(); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
$channel = $this->getChannel($connection); |
| 44 |
|
|
| 45 |
|
$this->messageProviders[$connection][$name] = new RedisMessageProvider($channel, $name); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
return $this->messageProviders[$connection][$name]; |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
/** |
| 52 |
|
* getMessagePublisher. |
|
@@ 59-72 (lines=14) @@
|
| 56 |
|
* |
| 57 |
|
* @return MessagePublisherInterface |
| 58 |
|
*/ |
| 59 |
|
public function getMessagePublisher($name, $connection) |
| 60 |
|
{ |
| 61 |
|
if (!isset($this->messageProviders[$connection][$name])) { |
| 62 |
|
if (!isset($this->messageProviders[$connection])) { |
| 63 |
|
$this->messageProviders[$connection] = array(); |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
$channel = $this->getChannel($connection); |
| 67 |
|
|
| 68 |
|
$this->messageProviders[$connection][$name] = new RedisMessagePublisher($channel, $name); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
return $this->messageProviders[$connection][$name]; |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
/** |
| 75 |
|
* getChannel. |