Skip to content

Commit 42674ee

Browse files
committed
minor #8066 [Lock] Integrate framework (jderusse, javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- [Lock] Integrate framework Should probably be merged after #7866 Documentation for symfony/symfony#22113 Commits ------- 142e703 Fixed minor issues 7f1e087 Add lock configuration in framework bundle
2 parents 4e880e8 + 142e703 commit 42674ee

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

reference/configuration/framework.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ Configuration
136136
* `provider`_
137137
* `clearer`_
138138
* `prefix_seed`_
139+
* :ref:`lock <reference-lock>`
139140

140141
secret
141142
~~~~~~
@@ -1957,6 +1958,16 @@ It's also useful when using `blue/green deployment`_ strategies and more
19571958
generally, when you need to abstract out the actual deployment directory (for
19581959
example, when warming caches offline).
19591960

1961+
.. _reference-lock:
1962+
1963+
lock
1964+
~~~~~
1965+
1966+
**type**: ``string``
1967+
1968+
The default lock adapter. If not defined the value is set to ``semaphore`` when
1969+
available, or to ``flock`` otherwise. Store's DSN are also allowed.
1970+
19601971
Full Default Configuration
19611972
--------------------------
19621973

@@ -2119,6 +2130,14 @@ Full Default Configuration
21192130
provider: ~
21202131
clearer: ~
21212132
2133+
# lock configuration
2134+
lock:
2135+
invoice: 'redis://localhost'
2136+
report: semaphore
2137+
# lock: ~
2138+
# lock: 'flock'
2139+
# lock: ['semaphore', 'redis://localhost']
2140+
21222141
.. _`HTTP Host header attacks`: http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
21232142
.. _`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
21242143
.. _`Doctrine Cache`: http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html

0 commit comments

Comments
 (0)