Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Console] Add doc about lockableTrait #19697

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

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

VincentLanglet
Copy link
Contributor

Closes #19688

@VincentLanglet
Copy link
Contributor Author

Why do I get [Missing class] Class, interface or trait with name "Symfony\Component\Lock\LockFactory" does not exist ?

@@ -43,4 +43,23 @@ that adds two convenient methods to lock and release commands::
}
}

By default, the LockableTrait will use the ``FlockStore``, or the ``SemaphoreStore`` if available,
Copy link
Member

Choose a reason for hiding this comment

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

This part is not fully clear to me:

will use the ``FlockStore``, or the ``SemaphoreStore`` if available [...]

I propose to reword it to better explain which of the two stores will be tried first:

The LockableTrait will use the ``SemaphoreStore`` if available and will default
to ``FlockStore`` otherwise. You can override this behavior [...]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback, it's changed.

@javiereguiluz
Copy link
Member

Vincent, you can ignore the code block error. It's a false positive that will be fixed when we update the code in that linter. Thanks.

@javiereguiluz javiereguiluz merged commit 3f816d4 into symfony:7.1 Apr 2, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Console] Add a way to use custom lock factory in lockableTrait
3 participants