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

[Lock] Deprecate Filesystem/LockHandler #8243

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 9, 2018
Merged
Changes from 1 commit
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
Prev Previous commit
Reword
  • Loading branch information
javiereguiluz authored Jan 9, 2018
commit cb771c345a04786c568830f7ebbc2418c54dd0ec
10 changes: 6 additions & 4 deletions 10 console/lockable_trait.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +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 **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.
a single server is to use `locks`_. The :doc:`Lock component </components/lock>`
provides multiple classes to create locks based on the filesystem (:ref:`FlockStore <_lock-store-flock>`),
shared memory (:ref:`SemaphoreStore <_lock-store-semaphore>`) and even databases
and Redis servers.

In addition, the Console component provides a PHP trait called ``LockableTrait``
that adds two convenient methods to lock and release commands::
Expand Down Expand Up @@ -40,3 +40,5 @@ that adds two convenient methods to lock and release commands::
$this->release();
}
}

.. _`locks`: https://en.wikipedia.org/wiki/Lock_(computer_science)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.