Skip to content

Commit bf24ea1

Browse files
committed
[Messenger] Deprecate StopWorkerOnSignalsListener
1 parent ca51eaa commit bf24ea1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Resources/config/messenger.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@
202202
->tag('monolog.logger', ['channel' => 'messenger'])
203203

204204
->set('messenger.listener.stop_worker_signals_listener', StopWorkerOnSignalsListener::class)
205+
->deprecate('6.4', 'symfony/messenger', 'The "%service_id%" service is deprecated, use the "Symfony\Component\Console\Command\SignalableCommandInterface" instead.')
205206
->args([
206207
null,
207208
service('logger')->ignoreOnInvalid(),
@@ -210,7 +211,7 @@
210211
->tag('monolog.logger', ['channel' => 'messenger'])
211212

212213
->alias('messenger.listener.stop_worker_on_sigterm_signal_listener', 'messenger.listener.stop_worker_signals_listener')
213-
->deprecate('6.3', 'symfony/messenger', 'The "%alias_id%" service is deprecated, use "messenger.listener.stop_worker_signals_listener" instead.')
214+
->deprecate('6.3', 'symfony/messenger', 'The "%alias_id%" service is deprecated, use the "Symfony\Component\Console\Command\SignalableCommandInterface" instead.')
214215

215216
->set('messenger.listener.stop_worker_on_stop_exception_listener', StopWorkerOnCustomStopExceptionListener::class)
216217
->tag('kernel.event_subscriber')

0 commit comments

Comments
 (0)