-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Lock] - pass redis connection #53845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In would vote for this one. Have the same issue. Potentially, it could be achieved with the help of CompilePass to create the Lock storage on the fly, but it would be great to avoid this, as in all other components of Symfony it works by default. |
Voting for this as well. |
Hey, thanks for your report! |
@carsonbot Yes, it is still relevant. |
PR welcome to implement this |
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): PersistingStoreInterface
How to reproduce
Possible Solution
\Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension::registerLockConfiguration
the extension should pass service here.Additional Context
No response
The text was updated successfully, but these errors were encountered: