Skip to content

Commit cb771c3

Browse files
Reword
1 parent af6dc34 commit cb771c3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

console/lockable_trait.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Prevent Multiple Executions of a Console Command
55
The ``LockableTrait`` was introduced in Symfony 3.2.
66

77
A simple but effective way to prevent multiple executions of the same command in
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 that eases the creation and
11-
release of these locks.
8+
a single server is to use `locks`_. The :doc:`Lock component </components/lock>`
9+
provides multiple classes to create locks based on the filesystem (:ref:`FlockStore <_lock-store-flock>`),
10+
shared memory (:ref:`SemaphoreStore <_lock-store-semaphore>`) and even databases
11+
and Redis servers.
1212

1313
In addition, the Console component provides a PHP trait called ``LockableTrait``
1414
that adds two convenient methods to lock and release commands::
@@ -40,3 +40,5 @@ that adds two convenient methods to lock and release commands::
4040
$this->release();
4141
}
4242
}
43+
44+
.. _`locks`: https://en.wikipedia.org/wiki/Lock_(computer_science)

0 commit comments

Comments
 (0)