File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11LockHandler
22===========
33
4+ .. versionadded :: 3.4
5+
6+ The ``LockHandler `` class has been deprecated in Symfony 3.4
7+ and it will be removed in Symfony 4.0. Use ``SemaphoreStore `` or
8+ ``FlockStore `` from the `Lock` component instead.
9+
10+
411What is a Lock?
512---------------
613
Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ Prevent Multiple Executions of a Console Command
55 The ``LockableTrait `` was introduced in Symfony 3.2.
66
77A simple but effective way to prevent multiple executions of the same command in
8- a single server is to use **file locks **. The Filesystem component provides a
9- :doc: `LockHandler </components/filesystem/lock_handler >` class that eases the
10- creation and release of these locks.
8+ a single server is to use **locks **. The Lock component provides a
9+ :ref: `SemaphoreStore <_lock-store-semaphore >` class and a
10+ :ref: `FlockStore <_lock-store-flock >` class and that eases the creation and
11+ release of these locks.
1112
1213In addition, the Console component provides a PHP trait called ``LockableTrait ``
1314that adds two convenient methods to lock and release commands::
You can’t perform that action at this time.
0 commit comments