@@ -235,7 +235,7 @@ is being acquired, it forwards the call to all the managed stores, and it
235235collects their responses. If a simple majority of stores have acquired the lock,
236236then the lock is considered as acquired; otherwise is not acquired::
237237
238- use Symfony\Component\Lock\Quorum\MajorityQuorum ;
238+ use Symfony\Component\Lock\Quorum\ConsensusStrategy ;
239239 use Symfony\Component\Lock\Store\CombinedStore;
240240 use Symfony\Component\Lock\Store\RedisStore;
241241
@@ -247,10 +247,10 @@ then the lock is considered as acquired; otherwise is not acquired::
247247 $stores[] = new RedisStore($redis);
248248 }
249249
250- $store = new CombinedStore($stores, newMajorityQuorum ());
250+ $store = new CombinedStore($stores, newConsensusStrategy ());
251251
252- Instead of the simple majority strategy (``MajorityQuorum ``) you can use the
253- ``UnanimousQuorum `` to require the lock to be acquired in all the stores.
252+ Instead of the simple majority strategy (``ConsensusStrategy ``) you can use the
253+ ``UnanimousStrategy `` to require the lock to be acquired in all the stores.
254254
255255.. _`locks` :https://en.wikipedia.org/wiki/Lock_(computer_science)
256256.. _Packagist :https://packagist.org/packages/symfony/lock