Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace Nord\Lumen\Doctrine\ORM\Configuration; |
||
11 | public function map(array $config) |
||
12 | { |
||
13 | return [ |
||
14 | 'driver' => $this->normalizeDriver($config['driver']), |
||
15 | 'host' => $config['host'], |
||
16 | 'port' => $config['port'], |
||
17 | 'dbname' => $config['database'], |
||
18 | 'user' => $config['username'], |
||
19 | 'password' => $config['password'], |
||
20 | 'charset' => $config['charset'], |
||
21 | 'prefix' => array_get($config, 'prefix'), |
||
22 | ]; |
||
23 | } |
||
24 | |||
42 |