Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
13 | 5 | public function services() |
|
14 | { |
||
15 | 5 | $this->registry->add('db', function () { |
|
16 | |||
17 | 5 | $config = $this->registry->make('config')->get('database'); |
|
18 | |||
19 | 5 | $default = $config['connections'][$config['default']]; |
|
20 | |||
21 | 5 | return new Db(Factory::create(array_merge($default, ['fetch' => $config['fetch']]))); |
|
22 | 5 | }); |
|
25 |