Skip to content

Commit c3b7325

Browse files
committed
minor #18796 [Lock] Blocking locks example (simoheinonen)
This PR was merged into the 5.4 branch. Discussion ---------- [Lock] Blocking locks example Redis store doesn't support blocking so doesn't make sense to use it as an example <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- dbb7f85 Update lock.rst
2 parents f78344d + dbb7f85 commit c3b7325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/lock.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ pass ``true`` as the argument of the ``acquire()`` method. This is called a
145145
lock is acquired::
146146

147147
use Symfony\Component\Lock\LockFactory;
148-
use Symfony\Component\Lock\Store\RedisStore;
148+
use Symfony\Component\Lock\Store\FlockStore;
149149

150-
$store = new RedisStore(new \Predis\Client('tcp://localhost:6379'));
150+
$store = new FlockStore('/var/stores');
151151
$factory = new LockFactory($store);
152152

153153
$lock = $factory->createLock('pdf-creation');

0 commit comments

Comments
 (0)