Skip to content

[Lock] Integrate framework #8066

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 2 commits into from
Jan 29, 2018
Merged
Changes from all 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
19 changes: 19 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Configuration
* `provider`_
* `clearer`_
* `prefix_seed`_
* :ref:`lock <reference-lock>`

secret
~~~~~~
Expand Down Expand Up @@ -1733,6 +1734,16 @@ It's also useful when using `blue/green deployment`_ strategies and more
generally, when you need to abstract out the actual deployment directory (for
example, when warming caches offline).

.. _reference-lock:

lock
~~~~~

**type**: ``string``

The default lock adapter. If not defined the value is set to ``semaphore`` when
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] not defined, the value [...]

available, or to ``flock`` otherwise. Store's DSN are also allowed.

Full Default Configuration
--------------------------

Expand Down Expand Up @@ -1894,6 +1905,14 @@ Full Default Configuration
provider: ~
clearer: ~

# lock configuration
lock:
invoice: 'redis://localhost'
report: semaphore
# lock: ~
# lock: 'flock'
# lock: ['semaphore', 'redis://localhost']

.. _`HTTP Host header attacks`: http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
.. _`Security Advisory Blog post`: https://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released#cve-2013-4752-request-gethost-poisoning
.. _`Doctrine Cache`: http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html
Expand Down