From 7f5722ff75143c3676aa4e6ec020b7e4620f02a9 Mon Sep 17 00:00:00 2001 From: Jeppe Bundgaard Date: Thu, 28 May 2026 20:40:08 +0200 Subject: [PATCH] Add exception handling for cleaner relay activation in self-serve lanes - Include `\Throwable` in docstring for better error documentation. - Implement `turnOnCleanerRelayForWashStart` in the wash start process. --- .../app/modules/selfserve/traits/selfserve_lane_command_t.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/nginx/app/modules/selfserve/traits/selfserve_lane_command_t.php b/services/nginx/app/modules/selfserve/traits/selfserve_lane_command_t.php index 89dee4a1..8a5a06a7 100644 --- a/services/nginx/app/modules/selfserve/traits/selfserve_lane_command_t.php +++ b/services/nginx/app/modules/selfserve/traits/selfserve_lane_command_t.php @@ -464,6 +464,7 @@ trait selfserve_lane_command_t * @param selfserve_lane_command_arguments $arguments The arguments for the command * @return selfserve_lane|selfserve_lane_command_t * @throws Exception If the command cannot be executed + * @throws \Throwable */ public function execute(selfserve_lane_command $command, selfserve_lane_command_arguments $arguments): self { @@ -517,6 +518,7 @@ trait selfserve_lane_command_t // Open the entrance port before marking the lane occupied. Gateway timeouts are // ambiguous because the relay may already have received the pulse. $this->openEntrancePortForWashStart(); + $this->turnOnCleanerRelayForWashStart(); } catch (\Throwable $e) { $this->setCustomerNumber($previous_customer_number); $this->setLicensePlate($previous_license_plate);