| 1 | <?php |
||
| 2 | |||
| 3 | if (function_exists('Jaxon\jaxon')) { |
||
| 4 | $di = Jaxon\jaxon()->di(); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 5 | // Register the database classes in the dependency container |
||
| 6 | $di->set(Lagdo\DbAdmin\Driver\PgSql\Driver::class, function($di) { |
||
| 7 | $utils = $di->get(Lagdo\DbAdmin\Driver\Utils\Utils::class); |
||
| 8 | $options = $di->get('dbadmin_config_options'); |
||
| 9 | return new Lagdo\DbAdmin\Driver\PgSql\Driver($utils, $options); |
||
| 10 | }); |
||
| 11 | $di->alias('dbadmin_driver_pgsql', Lagdo\DbAdmin\Driver\PgSql\Driver::class); |
||
| 12 | } |
||
| 13 |