Skip to content

Commit

Permalink
fix: shadowed param
Browse files Browse the repository at this point in the history
  • Loading branch information
mcharytoniuk committed Apr 22, 2024
1 parent 326d607 commit fc62796
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/RedisConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,10 @@
public Redis $redis;

public function __construct(
RedisConfiguration $redisConfiguration,
private RedisConnectionPoolRepository $redisConnectionPoolRepository,
string $redisPrefix,
private string $connectionPoolName = 'default',
) {
$redisPrefix = $redisConfiguration
->connectionPoolConfiguration
->get($connectionPoolName)
->prefix
;

$this->redis = $this
->redisConnectionPoolRepository
->getConnection($connectionPoolName)
Expand Down
1 change: 0 additions & 1 deletion src/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ private function getRedisConnection(): Redis
;

$redisConnection = new RedisConnection(
redisConfiguration: $this->redisConfiguration,
redisConnectionPoolRepository: $this->redisConnectionPoolRepository,
redisPrefix: $redisPrefix.'session:',
);
Expand Down

0 comments on commit fc62796

Please sign in to comment.