Skip to content

[FrameworkBundle] Finish incomplete tests for lock & semaphore config #58250

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

Conversation

HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Sep 13, 2024

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

I noticed this while working on #58249. Basically, the test files were partially added but never used, so the tests were incomplete. Also, there's a bug in the schema, as the configuration in those files didn't work.

@HypeMC HypeMC force-pushed the fix-schema-and-finish-incomplete-tests branch from c1124d4 to 0574c86 Compare September 13, 2024 16:59
@HypeMC HypeMC changed the title [FrameworkBundle] Fix schema & finish incomplete tests for lock & semaphore config [FrameworkBundle] Finish incomplete tests for lock & semaphore config Sep 16, 2024
@nicolas-grekas
Copy link
Member

Thank you @HypeMC.

@nicolas-grekas nicolas-grekas merged commit 8773318 into symfony:6.4 Sep 16, 2024
6 of 10 checks passed
@HypeMC HypeMC deleted the fix-schema-and-finish-incomplete-tests branch September 16, 2024 14:41
fabpot added a commit that referenced this pull request Sep 18, 2024
…as lock/semaphore resource (HypeMC)

This PR was merged into the 7.2 branch.

Discussion
----------

[FrameworkBundle] Add ability to use existing service as lock/semaphore resource

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Issues        | -
| License       | MIT

Contains #58250

Currently, it's not possible to set an existing service as the lock/semaphore resource via the config, even though both factories support this functionality, eg:

https://github.com/symfony/symfony/blob/44395abfcb2c859b26e0c6880c74dadd94da1038/src/Symfony/Component/Lock/Store/StoreFactory.php#L27-L36

Commits
-------

670ee5d [FrameworkBundle] Add ability to use existing service as lock/semaphore resource
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.

3 participants