Skip to content

Commit

Permalink
Fix Redis Instance Object Type Definition
Browse files Browse the repository at this point in the history
Magento is typically configured to use either Cm_Cache_Backend_Redis or
Magento\Framework\Cache\Backend\Redis as the 'backend' class for
handling Redis caching. The latter extends the former and this module
does not rely on the latter being use in order to perform its reporting.
  • Loading branch information
pykettk committed Apr 13, 2024
1 parent 3a73b03 commit 9d3e5be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Model/RedisInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace Element119\AdminRedisReport\Model;

use Cm_Cache_Backend_Redis;
use Element119\AdminRedisReport\Api\Data\RedisReportInterface;
use Element119\AdminRedisReport\Api\RedisReportRepositoryInterface;
use Magento\Framework\App\CacheInterface;
Expand All @@ -19,10 +20,12 @@
class RedisInfo implements ArgumentInterface
{
private CacheInterface $cache;
private Redis $redis;
private DeploymentConfig $deploymentConfig;
private ResourceConnection $resourceConnection;

/** @var Redis|Cm_Cache_Backend_Redis */
private $redis;

public function __construct(
CacheInterface $cache,
DeploymentConfig $deploymentConfig,
Expand Down

0 comments on commit 9d3e5be

Please sign in to comment.