| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | "callback" => function () { |
||
| 11 | $db = new \Anax\Database\Database(); |
||
| 12 | |||
| 13 | // Load the configuration files |
||
| 14 | $cfg = $this->get("configuration"); |
||
|
|
|||
| 15 | $config = $cfg->load("database"); |
||
| 16 | |||
| 17 | // Set the database configuration |
||
| 18 | $connection = $config["config"] ?? []; |
||
| 19 | $db->setOptions($connection); |
||
| 20 | |||
| 21 | return $db; |
||
| 22 | } |
||
| 26 |