Issues (2)

src/register.php (1 issue)

Labels
Severity
1
<?php
2
3
if (function_exists('Jaxon\jaxon')) {
4
    $di = Jaxon\jaxon()->di();
0 ignored issues
show
The function jaxon was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

4
    $di = /** @scrutinizer ignore-call */ Jaxon\jaxon()->di();
Loading history...
5
    // Register the database classes in the dependency container
6
    $di->set(Lagdo\DbAdmin\Driver\MySql\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\MySql\Driver($utils, $options);
10
    });
11
    $di->alias('dbadmin_driver_mysql', Lagdo\DbAdmin\Driver\MySql\Driver::class);
12
}
13