diff --git a/backend/composer.json b/backend/composer.json index 8d7aec2..82b8a22 100644 --- a/backend/composer.json +++ b/backend/composer.json @@ -7,6 +7,7 @@ "php": ">=8.0.2", "ext-ctype": "*", "ext-iconv": "*", + "ext-redis": "*", "doctrine/annotations": "^1.13", "phpdocumentor/reflection-docblock": "^5.3", "phpstan/phpdoc-parser": "^1.2", diff --git a/backend/config/services.yaml b/backend/config/services.yaml index effa412..92b4062 100644 --- a/backend/config/services.yaml +++ b/backend/config/services.yaml @@ -27,7 +27,6 @@ services: Redis: # you can also use \RedisArray, \RedisCluster or \Predis\Client classes class: \Redis - public: true calls: - connect: - '%env(REDIS_HOST)%' diff --git a/backend/public/index.php b/backend/public/index.php index 508a169..707599f 100644 --- a/backend/public/index.php +++ b/backend/public/index.php @@ -3,6 +3,8 @@ declare(strict_types=1); use App\Kernel; +use Redis; +$r = new Redis(); require_once dirname(__DIR__).'/vendor/autoload_runtime.php';