From 7f1e0876728279cbfc7bbed3fbefbbb484ab7e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Mon, 19 Jun 2017 23:52:23 +0200 Subject: [PATCH 1/2] Add lock configuration in framework bundle --- reference/configuration/framework.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 8249ec12eec..2e7ea58989e 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,17 @@ 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 +availabale, or to ``flock` otherwise. Store's DSN are also allowed. + + Full Default Configuration -------------------------- @@ -1894,6 +1906,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 From 142e703595eb1e3da2f8e545cc3a9aa0238612e9 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 11 Dec 2017 15:50:39 +0100 Subject: [PATCH 2/2] Fixed minor issues --- reference/configuration/framework.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 2e7ea58989e..ec0c5285eda 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -1742,8 +1742,7 @@ lock **type**: ``string`` The default lock adapter. If not defined the value is set to ``semaphore`` when -availabale, or to ``flock` otherwise. Store's DSN are also allowed. - +available, or to ``flock`` otherwise. Store's DSN are also allowed. Full Default Configuration --------------------------