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