Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2762,11 +2762,12 @@ A list of lock stores to be created by the framework extension.

.. code-block:: yaml

# app/config/config.yml
# config/packages/lock.yml
framework:
# these are all the supported lock stores
lock: ~
lock: 'flock'
lock: 'flock:///path/to/file'
lock: 'semaphore'
lock: 'memcached://m1.docker'
lock: ['memcached://m1.docker', 'memcached://m2.docker']
Expand All @@ -2781,7 +2782,7 @@ A list of lock stores to be created by the framework extension.

.. code-block:: xml

<!-- app/config/config.xml -->
<!-- config/packages/lock.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All @@ -2795,6 +2796,8 @@ A list of lock stores to be created by the framework extension.
<!-- these are all the supported lock stores -->
<framework:resource>flock</framework:resource>

<framework:resource>flock:///path/to/file</framework:resource>

<framework:resource>semaphore</framework:resource>

<framework:resource>memcached://m1.docker</framework:resource>
Expand All @@ -2819,11 +2822,12 @@ A list of lock stores to be created by the framework extension.

.. code-block:: php

// app/config/config.php
// config/packages/lock.php
$container->loadFromExtension('framework', [
// these are all the supported lock stores
'lock' => null,
'lock' => 'flock',
'lock' => 'flock:///path/to/file',
'lock' => 'semaphore',
'lock' => 'memcached://m1.docker',
'lock' => ['memcached://m1.docker', 'memcached://m2.docker'],
Expand All @@ -2838,6 +2842,10 @@ A list of lock stores to be created by the framework extension.
],
]);

.. versionadded:: 4.2

The ``flock://`` store was introduced in Symfony 4.2.

.. _reference-lock-resources-name:

name
Expand Down