| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 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 | }); |
||
| 31 | |||
| 32 | $this->app->bind('redis.connection', function ($app) { |
||
| 33 | return $app['redis']->connection(); |
||
| 34 | }); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |