1 | <?php |
||
7 | class RedisBroadcaster implements BroadcasterInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var ClientInterface |
||
11 | */ |
||
12 | private $redis; |
||
13 | |||
14 | /** |
||
15 | * RedisBroadcaster constructor. |
||
16 | * @param ClientInterface $redis |
||
17 | */ |
||
18 | 6 | public function __construct(ClientInterface $redis) |
|
22 | |||
23 | /** |
||
24 | * Broadcast the given event. |
||
25 | * |
||
26 | * @param array $channels |
||
27 | * @param string $event |
||
28 | * @param array $payload |
||
29 | * @return void |
||
30 | */ |
||
31 | 3 | public function broadcast(array $channels, $event, array $payload = []) |
|
39 | } |
||
40 |