Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbca6cf3

Browse files
committed
minor#11466 Add flock:// option to framework lock configuration reference (HypeMC)
This PR was submitted for the 4.2 branch but it was squashed and merged into the 4.3 branch instead (closes#11466).Discussion----------Add flock:// option to framework lock configuration referenceFixes#9779 & extends#11465 .Documents the `flock://` option which was added withsymfony/symfony#26923 .**NOTE 1**: The xml configuration doesn't currently work, seesymfony/symfony#31197**NOTE 2**: This PR has all the changes that#11465 has plus some symfony 4.2 specific additions, so#11465 should probably be merged first.Commits-------d9125fd Add flock:// option to framework lock configuration reference
2 parents11f7bea +d9125fd commitbca6cf3

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
<containerxmlns="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)

[8]ページ先頭

©2009-2025 Movatter.jp