You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The StoreFactory can receive object or string but the lock configuration allow use only string. StoreFactory::create can use instance of connection (\Redis, \RedisCluster, etc.)
public static function createStore(#[\SensitiveParameter] object|string $connection): PersistingStoreInterface
How to reproduce
framework:
lock:
enabled: trueresources:
- '@cache.provider.redis'services:
cache.provider.redis:
class: \Redis # no matter what the factory returnsfactory: [ 'Symfony\Component\Cache\Adapter\RedisAdapter', 'createConnection' ]arguments:
- 'redis://redis:6379'
Symfony version(s) affected
7.0.3
Description
The StoreFactory can receive object or string but the lock configuration allow use only string. StoreFactory::create can use instance of connection (\Redis, \RedisCluster, etc.)
public static function createStore(#[\SensitiveParameter] object|string $connection): PersistingStoreInterfaceHow to reproduce
Possible Solution
\Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension::registerLockConfigurationthe extension should pass service here.Additional Context
No response