This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Lock/Tests
Fabien Potencier af384aeee0 feature #22132 [Lock] Automaticaly release lock when user forget it (jderusse)
This PR was squashed before being merged into the 3.4 branch (closes #22132).

Discussion
----------

[Lock] Automaticaly release lock when user forget it

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

The objective of this PR is to automatically release the Lock when the user forget to call the `release` method (like the `fclose` function does in, php core).
The implementation is comparable to #22115 but the purpose is not the same.

I create a new PR to not mix things.

Commits
-------

2eedc1fd37 [Lock] Automaticaly release lock when user forget it
2017-10-01 11:03:21 -07:00
..
Store Share connection factories between cache and lock 2017-09-28 19:35:07 +02:00
Strategy [Lock] Re-add the Lock component in 3.4 2017-05-24 08:31:08 +02:00
FactoryTest.php [Lock] Re-add the Lock component in 3.4 2017-05-24 08:31:08 +02:00
LockTest.php [Lock] Automaticaly release lock when user forget it 2017-10-01 11:03:19 -07:00