- Added AdapterProxy autoload in ORM
This commit is contained in:
1 parent
69382f912b
commit
42f33d9f13
11 files changed
+76
-42
No files matched your search
@@ -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;
|
||||
},
|
||||
];
|
||||
Reference in new issue
Block a user