Skip to content

Commit d9125fd

Browse files
HypeMCjaviereguiluz
authored andcommitted
Add flock:// option to framework lock configuration reference
1 parent 11f7bea commit d9125fd

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

reference/configuration/framework.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2762,11 +2762,12 @@ A list of lock stores to be created by the framework extension.
27622762

27632763
.. code-block:: yaml
27642764
2765-
# app/config/config.yml
2765+
# config/packages/lock.yml
27662766
framework:
27672767
# these are all the supported lock stores
27682768
lock: ~
27692769
lock: 'flock'
2770+
lock: 'flock:///path/to/file'
27702771
lock: 'semaphore'
27712772
lock: 'memcached://m1.docker'
27722773
lock: ['memcached://m1.docker', 'memcached://m2.docker']
@@ -2781,7 +2782,7 @@ A list of lock stores to be created by the framework extension.
27812782
27822783
.. code-block:: xml
27832784
2784-
<!-- app/config/config.xml -->
2785+
<!-- config/packages/lock.xml -->
27852786
<?xml version="1.0" encoding="UTF-8" ?>
27862787
<container xmlns="http://symfony.com/schema/dic/services"
27872788
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -2795,6 +2796,8 @@ A list of lock stores to be created by the framework extension.
27952796
<!-- these are all the supported lock stores -->
27962797
<framework:resource>flock</framework:resource>
27972798
2799+
<framework:resource>flock:///path/to/file</framework:resource>
2800+
27982801
<framework:resource>semaphore</framework:resource>
27992802
28002803
<framework:resource>memcached://m1.docker</framework:resource>
@@ -2819,11 +2822,12 @@ A list of lock stores to be created by the framework extension.
28192822
28202823
.. code-block:: php
28212824
2822-
// app/config/config.php
2825+
// config/packages/lock.php
28232826
$container->loadFromExtension('framework', [
28242827
// these are all the supported lock stores
28252828
'lock' => null,
28262829
'lock' => 'flock',
2830+
'lock' => 'flock:///path/to/file',
28272831
'lock' => 'semaphore',
28282832
'lock' => 'memcached://m1.docker',
28292833
'lock' => ['memcached://m1.docker', 'memcached://m2.docker'],
@@ -2838,6 +2842,10 @@ A list of lock stores to be created by the framework extension.
28382842
],
28392843
]);
28402844
2845+
.. versionadded:: 4.2
2846+
2847+
The ``flock://`` store was introduced in Symfony 4.2.
2848+
28412849
.. _reference-lock-resources-name:
28422850

28432851
name

0 commit comments

Comments
 (0)