1 Commits
4.2 ... 4.2.1

Author SHA1 Message Date
User
b53c3f9815 20250127#1 2025-01-27 03:09:37 +03:00
2 changed files with 3 additions and 5 deletions

View File

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

View File

@@ -15,9 +15,9 @@
"rmphp/content": "^3.1", "rmphp/content": "^3.1",
"rmphp/kernel": "^5.0", "rmphp/kernel": "^5.0",
"rmphp/router": "^1.2", "rmphp/router": "^1.2",
"rmphp/session": "^1.0", "rmphp/session": "^1.1",
"rmphp/redis": "^1.0", "rmphp/redis": "^1.0",
"rmphp/storage": "^4.0", "rmphp/storage": "^4.1",
"symfony/dotenv": "^6.2" "symfony/dotenv": "^6.2"
}, },
"autoload": { "autoload": {