- Added AdapterProxy autoload in ORM

This commit is contained in:
Dave Mc Nicoll committed 2025-05-12 15:06:47 +00:00
1 parent 69382f912b
commit 42f33d9f13
11 files changed
+76 -42

No files matched your search

+7 -3
View File
@@ -11,8 +11,12 @@ return [
]),
AdapterProxy::class => function (Psr\Container\ContainerInterface $c) {
return new AdapterProxy(
$c->get(ConnectionAdapter::class),
);
$proxy = new AdapterProxy();
$autoload = $c->get(\Lean\Lean::class)->getConnectionAdapters();
$proxy->push($autoload);
return $proxy;
},
];