This line returns true:
error_log(json_encode(class_exists('iDb')));
However I’m getting
NOTICE: PHP message: PHP Fatal error: Uncaught Yiisoft\Di\NotFoundException: No definition or class found or resolvable for “iDb” while building “iDb”. in /var/www/vendor/yiisoft/di/src/Container.php:533
for simple command class
use iDb;
class Command
{
public function __construct(iDb $db) {}
}
loaded using DI like
require_once("idb.php"); // sadly not using autoload or namespaces for this class
$config = ContainerConfig::create();
$container = new Container($config);
$injector = new Injector($container);
$c = $injector->make($fullClassname);