lean/meta/definitions/orm.php

19 lines
378 B
PHP
Raw Normal View History

2024-06-07 00:01:43 +00:00
<?php
use Ulmus\Container\AdapterProxy;
use Ulmus\ConnectionAdapter;
2024-08-30 18:59:17 +00:00
use function DI\autowire, DI\create, DI\get, DI\add;
2024-06-07 00:01:43 +00:00
return [
'lean.autoload' => add([
AdapterProxy::class,
]),
2024-08-30 18:59:17 +00:00
2024-11-18 21:45:09 +00:00
AdapterProxy::class => function (Psr\Container\ContainerInterface $c) {
2024-08-30 18:59:17 +00:00
return new AdapterProxy(
$c->get(ConnectionAdapter::class),
);
},
2024-06-07 00:01:43 +00:00
];