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

[Filesystem][Lock] Deprecate LockHandler#8846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
jderusse wants to merge1 commit intosymfony:3.4fromjderusse:lock-deprecate-fs
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletionscomponents/filesystem/lock_handler.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
LockHandler
===========

.. versionadded:: 3.4

The ``LockHandler`` class has been deprecated in Symfony 3.4
and it will be removed in Symfony 4.0. Use ``SemaphoreStore`` or
``FlockStore`` from the ``Lock`` component instead.


What is a Lock?
---------------

Expand Down
7 changes: 4 additions & 3 deletionsconsole/lockable_trait.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,9 +5,10 @@ Prevent Multiple Executions of a Console Command
The ``LockableTrait`` was introduced in Symfony 3.2.

A simple but effective way to prevent multiple executions of the same command in
a single server is to use **file locks**. The Filesystem component provides a
:doc:`LockHandler </components/filesystem/lock_handler>` class that eases the
creation and release of these locks.
a single server is to use **locks**. The Lock component provides a
:ref:`SemaphoreStore <_lock-store-semaphore>` class and a
:ref:`FlockStore <_lock-store-flock>` class that eases the creation and
release of these locks.

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

[8]ページ先頭

©2009-2025 Movatter.jp