- WIP on moving config and definition loading into composer
This commit is contained in:
1 parent
2378245dbf
commit
60d4c7a900
5 files changed
+74
-2
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?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;
|
||||
}
|
||||
];
|
||||
Reference in new issue
Block a user