8000 Add lock configuration in framework bundle · symfony/symfony-docs@7f1e087 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f1e087

Browse files
committed
Add lock configuration in framework bundle
1 parent 53c1e20 commit 7f1e087

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

reference/configuration/framework.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ Configuration
122122
* `provider`_
123123
* `clearer`_
124124
* `prefix_seed`_
125+
* :ref:`lock <reference-lock>`
125126

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

1737+
.. _reference-lock:
1738+
1739+
lock
1740+
~~~~~
1741+
1742+
**type**: ``string``
1743+
1744+
The default lock adapter. If not defined the value is set to ``semaphore`` when
1745+
availabale, or to ``flock` otherwise. Store's DSN are also allowed.
1746+
1747+
17361748
Full Default Configuration
17371749
--------------------------
17381750
@@ -1894,6 +1906,14 @@ Full Default Configuration
18941906
provider: ~
18951907
clearer: ~
18961908
1909+
# lock configuration
1910+
lock:
1911+
invoice: 'redis://localhost'
1912+
report: semaphore
1913+
# lock: ~
1914+
# lock: 'flock'
1915+
# lock: ['semaphore', 'redis://localhost']
1916+
18971917
.. _`HTTP Host header attacks`: http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
18981918
.. _`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
18991919
.. _`Doctrine Cache`: http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html

0 commit comments

Comments
 (0)
0