@@ -2813,11 +2813,12 @@ A list of lock stores to be created by the framework extension.
28132813
28142814 .. code-block :: yaml
28152815
2816- # app/ config/config .yml
2816+ # config/packages/lock .yml
28172817 framework :
28182818 # these are all the supported lock stores
28192819 lock : ~
28202820 lock : ' flock'
2821+ lock : ' flock:///path/to/file'
28212822 lock : ' semaphore'
28222823 lock : ' memcached://m1.docker'
28232824 lock : ['memcached://m1.docker', 'memcached://m2.docker']
@@ -2832,7 +2833,7 @@ A list of lock stores to be created by the framework extension.
28322833
28332834 .. code-block :: xml
28342835
2835- <!-- app/ config/config .xml -->
2836+ <!-- config/packages/lock .xml -->
28362837 <?xml version =" 1.0" encoding =" UTF-8" ?>
28372838 <container xmlns =" http://symfony.com/schema/dic/services"
28382839 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.
28462847 <!-- these are all the supported lock stores -->
28472848 <framework : resource >flock</framework : resource >
28482849
2850+ <framework : resource >flock:///path/to/file</framework : resource >
2851+
28492852 <framework : resource >semaphore</framework : resource >
28502853
28512854 <framework : resource >memcached://m1.docker</framework : resource >
@@ -2870,11 +2873,12 @@ A list of lock stores to be created by the framework extension.
28702873
28712874 .. code-block :: php
28722875
2873- // app/ config/config .php
2876+ // config/packages/lock .php
28742877 $container->loadFromExtension('framework', [
28752878 // these are all the supported lock stores
28762879 'lock' => null,
28772880 'lock' => 'flock',
2881+ 'lock' => 'flock:///path/to/file',
28782882 'lock' => 'semaphore',
28792883 'lock' => 'memcached://m1.docker',
28802884 'lock' => ['memcached://m1.docker', 'memcached://m2.docker'],
@@ -2889,6 +2893,10 @@ A list of lock stores to be created by the framework extension.
28892893 ],
28902894 ]);
28912895
2896+ .. versionadded :: 4.2
2897+
2898+ The ``flock:// `` store was introduced in Symfony 4.2.
2899+
28922900.. _reference-lock-resources-name :
28932901
28942902name
0 commit comments