@@ -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
@@ -2057,6 +2057,8 @@ the name as key and DSN as value:
2057
2057
# config/packages/lock.yaml
2058
2058
framework :
2059
2059
lock : ' %env(LOCK_DSN)%'
2060
+ # or
2061
+ lock : ' service.id'
2060
2062
2061
2063
.. code-block :: xml
2062
2064
@@ -2072,6 +2074,8 @@ the name as key and DSN as value:
2072
2074
<framework : config >
2073
2075
<framework : lock >
2074
2076
<framework : resource name =" default" >%env(LOCK_DSN)%</framework : resource >
2077
+ <!-- or -->
2078
+ <framework : resource name =" default" >service.id</framework : resource >
2075
2079
</framework : lock >
2076
2080
</framework : config >
2077
2081
</container >
@@ -2083,7 +2087,10 @@ the name as key and DSN as value:
2083
2087
2084
2088
return static function (FrameworkConfig $framework): void {
2085
2089
$framework->lock()
2086
- ->resource('default', [env('LOCK_DSN')]);
2090
+ ->resource('default', [env('LOCK_DSN')])
2091
+ // or
2092
+ ->resource('default', ['service.id'])
2093
+ ;
2087
2094
};
2088
2095
2089
2096
.. seealso ::
@@ -2725,7 +2732,7 @@ resources
2725
2732
**type **: ``array ``
2726
2733
2727
2734
A map of semaphore stores to be created by the framework extension, with
2728
- the name as key and DSN as value:
2735
+ the name as key and DSN or service id as value:
2729
2736
2730
2737
.. configuration-block ::
2731
2738
@@ -2734,6 +2741,8 @@ the name as key and DSN as value:
2734
2741
# config/packages/semaphore.yaml
2735
2742
framework :
2736
2743
semaphore : ' %env(SEMAPHORE_DSN)%'
2744
+ # or
2745
+ semaphore : ' service.id'
2737
2746
2738
2747
.. code-block :: xml
2739
2748
@@ -2749,6 +2758,8 @@ the name as key and DSN as value:
2749
2758
<framework : config >
2750
2759
<framework : semaphore >
2751
2760
<framework : resource name =" default" >%env(SEMAPHORE_DSN)%</framework : resource >
2761
+ <!-- or -->
2762
+ <framework : resource name =" default" >service.id</framework : resource >
2752
2763
</framework : semaphore >
2753
2764
</framework : config >
2754
2765
</container >
@@ -2760,7 +2771,10 @@ the name as key and DSN as value:
2760
2771
2761
2772
return static function (FrameworkConfig $framework): void {
2762
2773
$framework->semaphore()
2763
- ->resource('default', ['%env(SEMAPHORE_DSN)%']);
2774
+ ->resource('default', [env('SEMAPHORE_DSN')])
2775
+ // or
2776
+ ->resource('default', ['service.id'])
2777
+ ;
2764
2778
};
2765
2779
2766
2780
.. _reference-semaphore-resources-name :
0 commit comments