File tree 1 file changed +3
-3
lines changed
Filter options
1 file changed +3
-3
lines changed
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Locks are used to guarantee exclusive access to some shared resource. In
28
28
Symfony applications, you can use locks for example to ensure that a command is
29
29
not executed more than once at the same time (on the same or different servers).
30
30
31
- In order to manage the state of locks, you first need to create a ``Store ``
31
+ In order to manage the state of locks, a ``Store `` needs to be created first
32
32
and then use the :class: `Symfony\\ Component\\ Lock\\ Factory ` class to actually
33
33
create the lock for some resource::
34
34
@@ -235,7 +235,7 @@ is being acquired, it forwards the call to all the managed stores, and it
235
235
collects their responses. If a simple majority of stores have acquired the lock,
236
236
then the lock is considered as acquired; otherwise as not acquired::
237
237
238
- use Symfony\Component\Lock\Quorum \ConsensusStrategy;
238
+ use Symfony\Component\Lock\Strategy \ConsensusStrategy;
239
239
use Symfony\Component\Lock\Store\CombinedStore;
240
240
use Symfony\Component\Lock\Store\RedisStore;
241
241
@@ -251,7 +251,7 @@ then the lock is considered as acquired; otherwise as not acquired::
251
251
252
252
Instead of the simple majority strategy (``ConsensusStrategy ``) an
253
253
``UnanimousStrategy `` can be used to require the lock to be acquired in all
254
- he stores.
254
+ the stores.
255
255
256
256
.. _`locks` : https://en.wikipedia.org/wiki/Lock_(computer_science)
257
257
.. _Packagist : https://packagist.org/packages/symfony/lock
You can’t perform that action at this time.
0 commit comments