20240413#7

This commit is contained in:
User
2024-04-13 11:33:47 +03:00
parent 041ee17263
commit cb5408be4a
24 changed files with 16 additions and 15 deletions

View File

@@ -0,0 +1,15 @@
<?php
use Rmphp\Cache\Cache;
use Rmphp\Cache\CacheInterface;
use Rmphp\Session\Session;
use Rmphp\Session\SessionInterface;
use Rmphp\Storage\Mysql\MysqlStorage;
use Rmphp\Storage\Mysql\MysqlStorageInterface;
return [
MysqlStorageInterface::class => DI\create(MysqlStorage::class)->constructor(json_decode(getenv("MYSQL_PARAM"), true)),
SessionInterface::class => DI\create(Session::class)->constructor(),
CacheInterface::class => DI\create(Cache::class)->constructor("../var/cache"),
'App\*\Domain\Repository\*Repository\*RepositoryInterface' => DI\autowire('App\*\Repository\Mysql\*Repository'),
];

View File

@@ -0,0 +1,5 @@
<?php
return [
//"container key"=>value
];