Skip to content

[Lock] Make various changes/updates on the Lock docs #17413

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

Closed
wants to merge 7 commits into from

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Nov 5, 2022

No description provided.

@carsonbot carsonbot added this to the 6.2 milestone Nov 5, 2022
@fabpot
Copy link
Member Author

fabpot commented Nov 5, 2022

I'd like to merge the two docs about Lock, is it still something we what to do overall?

@wouterj
Copy link
Member

wouterj commented Nov 5, 2022

I'd like to merge the two docs about Lock, is it still something we what to do overall?

Yes. Moving as much of the docs to the main guide is still something we agree on as far as I know. What is still a bit unsure is where the "this is how you set-up the component outside the framework" docs need to be (component doc? minor section in main guide? component's README?)

@fabpot
Copy link
Member Author

fabpot commented Nov 7, 2022

From what I understand, we've already moved "smaller" component docs to the README files. I think that's a good strategy.
I suggest that we merge this PR as is and I will do a follow-up PR to merge the 2 docs and move the "using Lock outside the Symfony framework" to the source README file.

Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

Lots of nice fixes, thanks!

Am I correct that we should merge this in 5.4 instead of 6.2?

@@ -81,57 +81,57 @@ continue the job in another process using the same lock::
use Symfony\Component\Lock\Lock;

$key = new Key('article.'.$article->getId());
$lock = new Lock($key, $this->store, 300, false);
$lock = new Lock($key, $this->store, autoRelease: false);
Copy link
Member

Choose a reason for hiding this comment

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

Given our BC promise doesn't guarantee BC for named arguments, do we want to use them in the documentation?

Copy link
Member Author

Choose a reason for hiding this comment

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

I did it as I found it easier to understand. I suppose people are using them anyway, so why not use them in the docs. I can revert if you think it would send a signal that they are part of the BC promise.

@fabpot
Copy link
Member Author

fabpot commented Nov 10, 2022

Lots of nice fixes, thanks!

Am I correct that we should merge this in 5.4 instead of 6.2?

Not sure about the version, it's really up to you.

@carsonbot carsonbot changed the title Make various changes/updates on the Lock docs [Lock] Make various changes/updates on the Lock docs Nov 24, 2022
@javiereguiluz
Copy link
Member

@wouterj I tried to merge this in 5.4 but I faced too many conflicts. If you have some time, please try to merge this yourself. Thanks!

wouterj added a commit that referenced this pull request Nov 25, 2022
…bpot)

This PR was merged into the 5.4 branch.

Discussion
----------

[Lock] Make various changes/updates on the Lock docs

Rebase of #17413 on 5.4

Commits
-------

bf6c6ae Make various changes/updates on the Lock docs
@wouterj
Copy link
Member

wouterj commented Nov 25, 2022

Rebased and merged in #17465

Thanks Fabien!

@wouterj wouterj closed this Nov 25, 2022
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.

5 participants