2023-11-18 03:33:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
|
|
|
|
use Ulmus\ConnectionAdapter,
|
|
|
|
Ulmus\Container\AdapterProxy;
|
|
|
|
|
|
|
|
use Storage\Session;
|
|
|
|
|
|
|
|
use function DI\autowire, DI\create, DI\get;
|
|
|
|
|
|
|
|
return [
|
2024-05-20 18:56:39 +00:00
|
|
|
'lean:adapter.sqlite' => function($c) {
|
2023-11-18 04:35:56 +00:00
|
|
|
$adapter = new ConnectionAdapter('lean.console', $c->get('config')['ulmus'], false);
|
2023-11-18 03:33:23 +00:00
|
|
|
$adapter->resolveConfiguration();
|
|
|
|
|
|
|
|
return $adapter;
|
|
|
|
}
|
|
|
|
];
|