Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
nicolas-grekas merged 1 commit intosymfony:7.1fromVincentLanglet:lockableTrait
Mar 18, 2024

Conversation

@VincentLanglet
Copy link
Contributor

@VincentLangletVincentLanglet commentedMar 2, 2024
edited
Loading

QA
Branch?7.1
Bug fix?no
New feature?yes
Deprecations?no
IssuesFix #...
LicenseMIT

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 thesetLockFactory method without introducing a BC break for people who rely on the fact that the LockableTrait use a different LockFactory than the one configured theframework.lock dsn.

yariksheptykin reacted with thumbs up emojiDavid-Moisan reacted with eyes emoji
@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "7.1" but it seems your PR description refers to branch "7.1 for features".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

@94noni
Copy link
Contributor

it could be a valuable addition indeed,
but this reminds me adiscussion of mine (other account)

@VincentLanglet
Copy link
ContributorAuthor

it could be a valuable addition indeed,

but this reminds me adiscussion of mine (other account)

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
Copy link
Contributor

Yes and you do good i think but may it will leverage discussion
Perhaps create another trait and name it specifically ?
and yes i’ve also seen the issue discussion and the doc and/or the class can be improved to give more context to the dev

Copy link
Member

@derrabusderrabus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Tests? 🙃

@VincentLanglet
Copy link
ContributorAuthor

Tests? 🙃

Indeed, I added some now@derrabus

@nicolas-grekas
Copy link
Member

Thank you@VincentLanglet.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@derrabusderrabusderrabus approved these changes

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

7.1

Development

Successfully merging this pull request may close these issues.

5 participants

@VincentLanglet@carsonbot@94noni@nicolas-grekas@derrabus

[8]ページ先頭

©2009-2025 Movatter.jp