@@ -2762,11 +2762,12 @@ A list of lock stores to be created by the framework extension.
2762
2762
2763
2763
.. code-block :: yaml
2764
2764
2765
- # app/ config/config .yml
2765
+ # config/packages/lock .yml
2766
2766
framework :
2767
2767
# these are all the supported lock stores
2768
2768
lock : ~
2769
2769
lock : ' flock'
2770
+ lock : ' flock:///path/to/file'
2770
2771
lock : ' semaphore'
2771
2772
lock : ' memcached://m1.docker'
2772
2773
lock : ['memcached://m1.docker', 'memcached://m2.docker']
@@ -2781,7 +2782,7 @@ A list of lock stores to be created by the framework extension.
2781
2782
2782
2783
.. code-block :: xml
2783
2784
2784
- <!-- app/ config/config .xml -->
2785
+ <!-- config/packages/lock .xml -->
2785
2786
<?xml version =" 1.0" encoding =" UTF-8" ?>
2786
2787
<container xmlns =" http://symfony.com/schema/dic/services"
2787
2788
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.
2795
2796
<!-- these are all the supported lock stores -->
2796
2797
<framework : resource >flock</framework : resource >
2797
2798
2799
+ <framework : resource >flock:///path/to/file</framework : resource >
2800
+
2798
2801
<framework : resource >semaphore</framework : resource >
2799
2802
2800
2803
<framework : resource >memcached://m1.docker</framework : resource >
@@ -2819,11 +2822,12 @@ A list of lock stores to be created by the framework extension.
2819
2822
2820
2823
.. code-block :: php
2821
2824
2822
- // app/ config/config .php
2825
+ // config/packages/lock .php
2823
2826
$container->loadFromExtension('framework', [
2824
2827
// these are all the supported lock stores
2825
2828
'lock' => null,
2826
2829
'lock' => 'flock',
2830
+ 'lock' => 'flock:///path/to/file',
2827
2831
'lock' => 'semaphore',
2828
2832
'lock' => 'memcached://m1.docker',
2829
2833
'lock' => ['memcached://m1.docker', 'memcached://m2.docker'],
@@ -2838,6 +2842,10 @@ A list of lock stores to be created by the framework extension.
2838
2842
],
2839
2843
]);
2840
2844
2845
+ .. versionadded :: 4.2
2846
+
2847
+ The ``flock:// `` store was introduced in Symfony 4.2.
2848
+
2841
2849
.. _reference-lock-resources-name :
2842
2850
2843
2851
name
0 commit comments