From 91c6a6e89fb2bca5186df92aadb5f8c163f058b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Thu, 29 Aug 2024 13:20:15 +0200 Subject: [PATCH] Remove order listener --- src/EventListener/Doctrine/OrderListener.php | 38 -------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/EventListener/Doctrine/OrderListener.php diff --git a/src/EventListener/Doctrine/OrderListener.php b/src/EventListener/Doctrine/OrderListener.php deleted file mode 100644 index 59b67e3..0000000 --- a/src/EventListener/Doctrine/OrderListener.php +++ /dev/null @@ -1,38 +0,0 @@ -getObject(); - if (!$obj instanceof OrderInterface) { - return; - } - - // For now this listener only triggers when the state changes - if (!$eventArgs->hasChangedField('state')) { - return; - } - - $uploadOrderRequest = $obj->getPeakUploadOrderRequest() ?? $this->uploadOrderRequestFactory->createNew(); - $this->uploadOrderRequestWorkflow->apply($uploadOrderRequest, UploadOrderRequestWorkflow::TRANSITION_RESET); - - $obj->setPeakUploadOrderRequest($uploadOrderRequest); - } -}