Skip to content

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
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