8000 Added a tip about the TMPDIR env variable by javiereguiluz · Pull Request #7150 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Added a tip about the TMPDIR env variable #7150

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

Closed
wants to merge 3 commits into from
Closed
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
Next Next commit
Added a tip about the TMPDIR env variable
  • Loading branch information
javiereguiluz committed Nov 21, 2016
commit 1e9fbd617079ac9ede7cec72bb1207584de66a33
6 changes: 6 additions & 0 deletions components/filesystem/lock_handler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ By default, the lock will be created in the temporary directory, but you can
optionally select the directory where locks are created by passing it as the
second argument of the constructor.

.. tip::

Another way to configure the directory where the locks are created is to
define the ``TMPDIR`` environment variable. This is useful for example when
deploying a third-party Symfony application whose code can't be modified.

The :method:`Symfony\\Component\\Filesystem\\LockHandler::lock` method tries to
acquire the lock. If the lock is acquired, the method returns ``true``,
``false`` otherwise. If the ``lock`` method is called several times on the same
Expand Down
0