| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1.0787 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 15 | public function register(): void |
|
| 13 | { |
||
| 14 | $this->app->singleton('redis', static function ($app) { |
||
| 15 | $config = $app->make('config')->get('database.redis'); |
||
| 16 | |||
| 17 | return new RedisManager($app, Arr::pull($config, 'client', 'phpredis'), $config); |
||
| 18 | 15 | }); |
|
| 19 | |||
| 20 | $this->app->bind('redis.connection', static function ($app) { |
||
| 21 | return $app['redis']->connection(); |
||
| 22 | 15 | }); |
|
| 23 | 15 | } |
|
| 24 | } |
||
| 25 |