Use typed Laravel service resolution for managed credentials
tests / ci (pull_request) Successful in 2m59s
tests / ci (pull_request) Successful in 2m59s
This commit is contained in:
@@ -7,6 +7,10 @@ use RuntimeException;
|
||||
|
||||
final class ManagedPhpRedisConnector extends PhpRedisConnector
|
||||
{
|
||||
/**
|
||||
* @param array<array-key, mixed> $config
|
||||
* @param array<array-key, mixed> $options
|
||||
*/
|
||||
public function connect(array $config, array $options)
|
||||
{
|
||||
$config['password'] = ManagedCredentialFiles::redisPassword();
|
||||
@@ -15,7 +19,12 @@ final class ManagedPhpRedisConnector extends PhpRedisConnector
|
||||
return parent::connect($config, $options);
|
||||
}
|
||||
|
||||
public function connectToCluster(array $config, array $clusterOptions, array $options)
|
||||
/**
|
||||
* @param array<array-key, mixed> $config
|
||||
* @param array<array-key, mixed> $clusterOptions
|
||||
* @param array<array-key, mixed> $options
|
||||
*/
|
||||
public function connectToCluster(array $config, array $clusterOptions, array $options): never
|
||||
{
|
||||
throw new RuntimeException('Managed credential delivery requires standalone Redis.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user