| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1.0527 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 11 | public function register() |
|
| 25 | { |
||
| 26 | $this->app->singleton('redis', function ($app) { |
||
| 27 | $config = $app->make('config')->get('database.redis'); |
||
| 28 | |||
| 29 | return new RedisManager($app, Arr::pull($config, 'client', 'predis'), $config); |
||
| 30 | 11 | }); |
|
| 31 | |||
| 32 | 11 | $this->app->bind('redis.connection', function ($app) { |
|
| 33 | return $app['redis']->connection(); |
||
| 34 | 11 | }); |
|
| 35 | 11 | } |
|
| 36 | } |
||
| 37 |