Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Console] Add a way to use custom lock factory in lockableTrait#54135
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedMar 2, 2024
Hey! Thanks for your PR. You are targeting branch "7.1" but it seems your PR description refers to branch "7.1 for features". Cheers! Carsonbot |
94noni commentedMar 2, 2024
it could be a valuable addition indeed, |
VincentLanglet commentedMar 2, 2024
I also sawsymfony/symfony-docs#20210. I currently find the LockableTrait really confusing because when using it (without reading the code inside) you could expect that the trait use the default configured lock factory instead of creating a new one. I was trying to improve the situation... |
94noni commentedMar 3, 2024
Yes and you do good i think but may it will leverage discussion |
derrabus left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Tests? 🙃
Uh oh!
There was an error while loading.Please reload this page.
12b0f44 to060cad3CompareVincentLanglet commentedMar 3, 2024
Indeed, I added some now@derrabus |
nicolas-grekas commentedMar 18, 2024
Thank you@VincentLanglet. |
Uh oh!
There was an error while loading.Please reload this page.
The LockableTrait only use SemaphoreStore or FlockStore, but currently we cannot use MemcachedStore or RedisStore.
When using a custom LockFactory everywhere in the codebase, it would be useful to chose if the commande need a server-related store or not.
I'm not sure if I have a way to provide autowire to the
setLockFactorymethod without introducing a BC break for people who rely on the fact that the LockableTrait use a different LockFactory than the one configured theframework.lockdsn.