Skip to content

Commit a77890f

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: Update lock.rst
2 parents 2625a78 + e570cff commit a77890f

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
@@ -142,9 +142,9 @@ pass ``true`` as the argument of the ``acquire()`` method. This is called a
142142
lock is acquired::
143143

144144
use Symfony\Component\Lock\LockFactory;
145-
use Symfony\Component\Lock\Store\RedisStore;
145+
use Symfony\Component\Lock\Store\FlockStore;
146146

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

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

0 commit comments

Comments
 (0)