File tree 2 files changed +11
-3
lines changed
Filter options
2 files changed +11
-3
lines changed
Original file line number Diff line number Diff line change 1
1
LockHandler
2
2
===========
3
3
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
+
4
11
What is a Lock?
5
12
---------------
6
13
Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ Prevent Multiple Executions of a Console Command
5
5
The ``LockableTrait `` was introduced in Symfony 3.2.
6
6
7
7
A 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.
11
12
12
13
In addition, the Console component provides a PHP trait called ``LockableTrait ``
13
14
that adds two convenient methods to lock and release commands::
You can’t perform that action at this time.
0 commit comments