20250419#1
This commit is contained in:
6
config/container/params.php
Normal file
6
config/container/params.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'MYSQL_PARAM' => json_decode(getenv("MYSQL_PARAM"), true),
|
||||
'REDIS_PARAM' => json_decode(getenv("REDIS_PARAM"), true),
|
||||
];
|
||||
@@ -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'),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user