@@ -2813,11 +2813,12 @@ A list of lock stores to be created by the framework extension.
2813
2813
2814
2814
.. code-block :: yaml
2815
2815
2816
- # app/ config/config .yml
2816
+ # config/packages/lock .yml
2817
2817
framework :
2818
2818
# these are all the supported lock stores
2819
2819
lock : ~
2820
2820
lock : ' flock'
2821
+ lock : ' flock:///path/to/file'
2821
2822
lock : ' semaphore'
2822
2823
lock : ' memcached://m1.docker'
2823
2824
lock : ['memcached://m1.docker', 'memcached://m2.docker']
@@ -2832,7 +2833,7 @@ A list of lock stores to be created by the framework extension.
2832
2833
2833
2834
.. code-block :: xml
2834
2835
2835
- <!-- app/ config/config .xml -->
2836
+ <!-- config/packages/lock .xml -->
2836
2837
<?xml version =" 1.0" encoding =" UTF-8" ?>
2837
2838
<container xmlns =" http://symfony.com/schema/dic/services"
2838
2839
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -2846,6 +2847,8 @@ A list of lock stores to be created by the framework extension.
2846
2847
<!-- these are all the supported lock stores -->
2847
2848
<framework : resource >flock</framework : resource >
2848
2849
2850
+ <framework : resource >flock:///path/to/file</framework : resource >
2851
+
2849
2852
<framework : resource >semaphore</framework : resource >
2850
2853
2851
2854
<framework : resource >memcached://m1.docker</framework : resource >
@@ -2870,11 +2873,12 @@ A list of lock stores to be created by the framework extension.
2870
2873
2871
2874
.. code-block :: php
2872
2875
2873
- // app/ config/config .php
2876
+ // config/packages/lock .php
2874
2877
$container->loadFromExtension('framework', [
2875
2878
// these are all the supported lock stores
2876
2879
'lock' => null,
2877
2880
'lock' => 'flock',
2881
+ 'lock' => 'flock:///path/to/file',
2878
2882
'lock' => 'semaphore',
2879
2883
'lock' => 'memcached://m1.docker',
2880
2884
'lock' => ['memcached://m1.docker', 'memcached://m2.docker'],
@@ -2889,6 +2893,10 @@ A list of lock stores to be created by the framework extension.
2889
2893
],
2890
2894
]);
2891
2895
2896
+ .. versionadded :: 4.2
2897
+
2898
+ The ``flock:// `` store was introduced in Symfony 4.2.
2899
+
2892
2900
.. _reference-lock-resources-name :
2893
2901
2894
2902
name
0 commit comments