diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 49adddabbc3..628e150934e 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -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'] @@ -2781,7 +2782,7 @@ A list of lock stores to be created by the framework extension. .. code-block:: xml - + flock + flock:///path/to/file + semaphore memcached://m1.docker @@ -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'], @@ -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