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

Skip to content

Commit 2428575

Browse files
committed
minor #16790 [Lock] Removed RetryTillSaveStore class (no longer needed) (mdoutreluingne)
This PR was merged into the 6.0 branch. Discussion ---------- [Lock] Removed RetryTillSaveStore class (no longer needed) Fixes #16785 For this PR, I removed `RetryTillSaveStore` class, because this class became obsolete from Symfony 5.2 and was removed from Symfony 6.0 as shown [here](https://github.com/symfony/symfony/pull/38296/files#diff-14c53c18273c57073d28f8dd3b4fab7253f5df427aea52b9a1c0a815dea3bea2). Commits ------- 0ba643e Remove RetryTillSaveStore class
2 parents 223351d + 0ba643e commit 2428575

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/lock.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,12 @@ can be created, pass ``true`` as the argument of the ``acquire()`` method. This
106106
is called a **blocking lock** because the execution of your application stops
107107
until the lock is acquired.
108108

109-
Some of the built-in ``Store`` classes support this feature. When they don't,
110-
they can be decorated with the ``RetryTillSaveStore`` class::
109+
Some of the built-in ``Store`` classes support this feature.
111110

112111
use Symfony\Component\Lock\LockFactory;
113112
use Symfony\Component\Lock\Store\RedisStore;
114-
use Symfony\Component\Lock\Store\RetryTillSaveStore;
115113

116114
$store = new RedisStore(new \Predis\Client('tcp://localhost:6379'));
117-
$store = new RetryTillSaveStore($store);
118115
$factory = new LockFactory($store);
119116

120117
$lock = $factory->createLock('notification-flush');

0 commit comments

Comments
 (0)