Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 297f67e

Browse filesBrowse files
committed
Deprecate Filesystem/LockHandler
1 parent ab53d29 commit 297f67e
Copy full SHA for 297f67e

File tree

2 files changed

+11
-3
lines changed
Filter options

2 files changed

+11
-3
lines changed

‎components/filesystem/lock_handler.rst

Copy file name to clipboardExpand all lines: components/filesystem/lock_handler.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
LockHandler
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+
411
What is a Lock?
512
---------------
613

‎console/lockable_trait.rst

Copy file name to clipboardExpand all lines: console/lockable_trait.rst
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +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 **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

1213
In addition, the Console component provides a PHP trait called ``LockableTrait``
1314
that adds two convenient methods to lock and release commands::

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.