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-11-10 13:09:23 +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();
|
|
|
|
|
2024-05-21 13:04:11 +00:00
|
|
|
return $adapter;
|
|
|
|
},
|
|
|
|
|
|
|
|
# @TODO BACKWARD COMPATIBILIY, TO BE REMOVED SOON !
|
|
|
|
'console.adapter' => function($c) {
|
|
|
|
$adapter = new ConnectionAdapter('lean.console', $c->get('config')['ulmus'], false);
|
|
|
|
$adapter->resolveConfiguration();
|
|
|
|
|
2023-11-18 03:33:23 +00:00
|
|
|
return $adapter;
|
2024-11-10 13:09:23 +00:00
|
|
|
}*/
|
2023-11-18 03:33:23 +00:00
|
|
|
];
|