Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit800bdd7

Browse files
committed
Deprecate Filesystem/LockHandler
1 parenta5d47c6 commit800bdd7

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

‎components/filesystem/lock_handler.rst‎

Lines 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‎

Lines 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 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)

[8]ページ先頭

©2009-2025 Movatter.jp