File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 36
36
<tag name =" cache.pool" />
37
37
</service >
38
38
39
+ <service id =" cache.messenger.restart_workers_signal" parent =" cache.app" public =" false" >
40
+ <tag name =" cache.pool" />
41
+ </service >
42
+
39
43
<service id =" cache.adapter.system" class =" Symfony\Component\Cache\Adapter\AdapterInterface" abstract =" true" >
40
44
<factory class =" Symfony\Component\Cache\Adapter\AbstractAdapter" method =" createSystemCache" />
41
45
<tag name =" cache.pool" clearer =" cache.system_clearer" />
Original file line number Diff line number Diff line change 83
83
<argument type =" collection" /> <!-- Receiver names -->
84
84
<argument type =" service" id =" messenger.retry_strategy_locator" />
85
85
<argument type =" service" id =" event_dispatcher" />
86
+ <call method =" setCachePoolForRestartSignal" >
87
+ <argument type =" service" id =" cache.messenger.restart_workers_signal" />
88
+ </call >
86
89
87
90
<tag name =" console.command" command =" messenger:consume" />
88
91
<tag name =" console.command" command =" messenger:consume-messages" />
101
104
<tag name =" console.command" command =" debug:messenger" />
102
105
</service >
103
106
107
+ <service id =" console.command.messenger_stop_workers" class =" Symfony\Component\Messenger\Command\StopWorkersCommand" >
108
+ <argument type =" service" id =" cache.messenger.restart_workers_signal" />
109
+ <tag name =" console.command" command =" messenger:stop-workers" />
110
+ </service >
111
+
104
112
<service id =" console.command.router_debug" class =" Symfony\Bundle\FrameworkBundle\Command\RouterDebugCommand" >
105
113
<argument type =" service" id =" router" />
106
114
<tag name =" console.command" command =" debug:router" />
You can’t perform that action at this time.
0 commit comments