20250419#1

This commit is contained in:
User
2025-04-19 19:00:02 +03:00
parent 2657310000
commit b263351289
6 changed files with 12 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
<?php
return [
'MYSQL_PARAM' => json_decode(getenv("MYSQL_PARAM"), true),
'REDIS_PARAM' => json_decode(getenv("REDIS_PARAM"), true),
];

View File

@@ -4,7 +4,7 @@ use Rmphp\Storage\Mysql\MysqlStorage;
use Rmphp\Storage\Mysql\MysqlStorageInterface;
return [
MysqlStorageInterface::class => DI\create(MysqlStorage::class)->constructor(json_decode(getenv("MYSQL_PARAM"))),
MysqlStorageInterface::class => DI\create(MysqlStorage::class)->constructor(DI\get("MYSQL_PARAM")),
'App\Domain\Repository\*RepositoryInterface' => DI\autowire('App\Infrastructure\Repository\*Repository'),
'App\*\Domain\Repository\*RepositoryInterface' => DI\autowire('App\*\Infrastructure\Repository\*Repository'),
];