src/RedisSentinelServiceProvider.php 1 location
|
@@ 223-230 (lines=8) @@
|
220 |
|
* |
221 |
|
* @return void |
222 |
|
*/ |
223 |
|
protected function addRedisSentinelQueueConnector() |
224 |
|
{ |
225 |
|
$this->app->make('queue')->extend('redis-sentinel', function () { |
226 |
|
$redis = $this->app->make('redis-sentinel.manager'); |
227 |
|
|
228 |
|
return new RedisConnector($redis); |
229 |
|
}); |
230 |
|
} |
231 |
|
} |
232 |
|
|
src/Horizon/HorizonServiceProvider.php 1 location
|
@@ 161-168 (lines=8) @@
|
158 |
|
* |
159 |
|
* @return void |
160 |
|
*/ |
161 |
|
protected function addHorizonSentinelQueueConnector() |
162 |
|
{ |
163 |
|
$this->app->make('queue')->extend('redis-sentinel', function () { |
164 |
|
$redis = $this->app->make('redis-sentinel.manager'); |
165 |
|
|
166 |
|
return new HorizonRedisConnector($redis); |
167 |
|
}); |
168 |
|
} |
169 |
|
} |
170 |
|
|