@@ -2048,7 +2048,7 @@ resources
2048
2048
**type **: ``array ``
2049
2049
2050
2050
A map of lock stores to be created by the framework extension, with
2051
- the name as key and DSN as value:
2051
+ the name as key and DSN or service id as value:
2052
2052
2053
2053
.. configuration-block ::
2054
2054
@@ -2079,6 +2079,7 @@ the name as key and DSN as value:
2079
2079
.. code-block :: php
2080
2080
2081
2081
// config/packages/lock.php
2082
+ use function Symfony\Component\DependencyInjection\Loader\Configurator\env;
2082
2083
use Symfony\Config\FrameworkConfig;
2083
2084
2084
2085
return static function (FrameworkConfig $framework): void {
@@ -2725,7 +2726,7 @@ resources
2725
2726
**type **: ``array ``
2726
2727
2727
2728
A map of semaphore stores to be created by the framework extension, with
2728
- the name as key and DSN as value:
2729
+ the name as key and DSN or service id as value:
2729
2730
2730
2731
.. configuration-block ::
2731
2732
@@ -2756,11 +2757,12 @@ the name as key and DSN as value:
2756
2757
.. code-block :: php
2757
2758
2758
2759
// config/packages/semaphore.php
2760
+ use function Symfony\Component\DependencyInjection\Loader\Configurator\env;
2759
2761
use Symfony\Config\FrameworkConfig;
2760
2762
2761
2763
return static function (FrameworkConfig $framework): void {
2762
2764
$framework->semaphore()
2763
- ->resource('default', ['% env(SEMAPHORE_DSN)%' ]);
2765
+ ->resource('default', [env(' SEMAPHORE_DSN') ]);
2764
2766
};
2765
2767
2766
2768
.. _reference-semaphore-resources-name :
0 commit comments