@@ -2629,11 +2629,12 @@ A list of lock stores to be created by the framework extension.
2629
2629
2630
2630
.. code-block :: yaml
2631
2631
2632
- # app/ config/config .yml
2632
+ # config/packages/lock .yml
2633
2633
framework :
2634
2634
# these are all the supported lock stores
2635
2635
lock : ~
2636
2636
lock : ' flock'
2637
+ lock : ' flock:///path/to/file'
2637
2638
lock : ' semaphore'
2638
2639
lock : ' memcached://m1.docker'
2639
2640
lock : ['memcached://m1.docker', 'memcached://m2.docker']
@@ -2648,7 +2649,7 @@ A list of lock stores to be created by the framework extension.
2648
2649
2649
2650
.. code-block :: xml
2650
2651
2651
- <!-- app/ config/config .xml -->
2652
+ <!-- config/packages/lock .xml -->
2652
2653
<?xml version =" 1.0" encoding =" UTF-8" ?>
2653
2654
<container xmlns =" http://symfony.com/schema/dic/services"
2654
2655
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -2662,6 +2663,8 @@ A list of lock stores to be created by the framework extension.
2662
2663
<!-- these are all the supported lock stores -->
2663
2664
<framework : resource >flock</framework : resource >
2664
2665
2666
+ <framework : resource >flock:///path/to/file</framework : resource >
2667
+
2665
2668
<framework : resource >semaphore</framework : resource >
2666
2669
2667
2670
<framework : resource >memcached://m1.docker</framework : resource >
@@ -2686,11 +2689,12 @@ A list of lock stores to be created by the framework extension.
2686
2689
2687
2690
.. code-block :: php
2688
2691
2689
- // app/ config/config .php
2692
+ // config/packages/lock .php
2690
2693
$container->loadFromExtension('framework', [
2691
2694
// these are all the supported lock stores
2692
2695
'lock' => null,
2693
2696
'lock' => 'flock',
2697
+ 'lock' => 'flock:///path/to/file',
2694
2698
'lock' => 'semaphore',
2695
2699
'lock' => 'memcached://m1.docker',
2696
2700
'lock' => ['memcached://m1.docker', 'memcached://m2.docker'],
@@ -2705,6 +2709,10 @@ A list of lock stores to be created by the framework extension.
2705
2709
],
2706
2710
]);
2707
2711
2712
+ .. versionadded :: 4.2
2713
+
2714
+ The ``flock:// `` store was introduced in Symfony 4.2.
2715
+
2708
2716
.. _reference-lock-resources-name :
2709
2717
2710
2718
name
0 commit comments