Skip to content

Commit

Permalink
Merge pull request #21 from gurman/add_redis_objects
Browse files Browse the repository at this point in the history
Add redis objects
  • Loading branch information
mcfedr authored Apr 19, 2022
2 parents 7059648 + 3d86d99 commit 2e28ebd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ jobs:
fail-fast: false
matrix:
version:
- php: '7.3'
symfony: '4.4'
- php: '7.4'
symfony: '4.4'
- php: '7.3'
symfony: '5.4'
- php: '7.4'
symfony: '5.4'
- php: '8.0'
symfony: '5.4'
- php: '8.0'
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
]
},
"require": {
"php": ">=7.3",
"php": ">=8.0",
"ext-redis": "*",
"symfony/framework-bundle": "^4.0|^5.0|^6.0",
"sensio/framework-extra-bundle": "^4.0|^5.0|^6.0"
"symfony/framework-bundle": "^5.0|^6.0",
"sensio/framework-extra-bundle": "^5.0|^6.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^4.0|^5.0|^6.0",
"symfony/phpunit-bridge": "^5.0|^6.0",
"doctrine/doctrine-bundle": "^2",
"phpunit/phpunit": "^9",
"friendsofphp/php-cs-fixer": "^2.0|^3.0",
"symfony/monolog-bundle": "^3.0|^4.0",
"symfony/browser-kit": "^4.0|^5.0|^6.0",
"symfony/yaml": "^4.0|^5.0|^6.0"
"symfony/browser-kit": "^5.0|^6.0",
"symfony/yaml": "^5.0|^6.0"
},
"authors": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Doctrine\DBAL\Connection;
use Symfony\Bridge\Doctrine\ManagerRegistry;
use Symfony\Component\Cache\Traits\RedisProxy;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
Expand Down Expand Up @@ -124,7 +125,7 @@ private function checkDoctrineConnection(Connection $connection): bool
}
}

private function checkRedisConnection(\Redis $redis): bool
private function checkRedisConnection(\Redis|\RedisArray|RedisProxy|\Predis\ClientInterface $redis): bool
{
try {
$redis->ping();
Expand Down

0 comments on commit 2e28ebd

Please sign in to comment.