File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 4848 "doctrine/orm" : " ^2.19" ,
4949 "phpunit/phpunit" : " ^9.6"
5050 },
51+ "conflict" : {
52+ "win32service/service-library" : " <1.0.2"
53+ },
5154 "suggest" : {
5255 "ext-win32service" : " On Windows only, install this extension to run PHP Service on Windows Service Manager"
5356 },
Original file line number Diff line number Diff line change 2020use Symfony \Component \Messenger \Stamp \NoAutoAckStamp ;
2121use Symfony \Component \Messenger \Stamp \ReceivedStamp ;
2222use Symfony \Component \Messenger \Transport \Receiver \ReceiverInterface ;
23+ use Win32Service \Exception \RecoveryActionException ;
2324use Win32Service \Model \AbstractServiceRunner ;
2425use Win32ServiceBundle \Event \MessengerWorkerMessageFailedEvent ;
2526use Win32ServiceBundle \Event \MessengerWorkerMessageHandledEvent ;
@@ -106,6 +107,8 @@ public function stop(): void
106107
107108 $ this ->shouldStop = true ;
108109 $ this ->requestStop ();
110+
111+ throw new RecoveryActionException ('Restart requested ' );
109112 }
110113
111114 protected function beforeContinue (): void
You can’t perform that action at this time.
0 commit comments