20 lines
394 B
PHP
20 lines
394 B
PHP
<?php
|
|
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
use Ulmus\ConnectionAdapter,
|
|
Ulmus\Container\AdapterProxy;
|
|
|
|
use Storage\Session;
|
|
|
|
use function DI\autowire, DI\create, DI\get;
|
|
|
|
return [
|
|
'lean:adapter.sqlite' => function($c) {
|
|
$adapter = new ConnectionAdapter('sqlite', $c->get('config')['ulmus'], true);
|
|
$adapter->resolveConfiguration();
|
|
|
|
return $adapter;
|
|
}
|
|
];
|