diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 8249ec12eec..ec0c5285eda 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -122,6 +122,7 @@ Configuration * `provider`_ * `clearer`_ * `prefix_seed`_ +* :ref:`lock ` secret ~~~~~~ @@ -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 +available, or to ``flock`` otherwise. Store's DSN are also allowed. + Full Default Configuration -------------------------- @@ -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