From 24d63ee497a548e57168384d3871a42f4c7fb68f Mon Sep 17 00:00:00 2001 From: core23 Date: Wed, 5 Jun 2024 17:49:40 +0200 Subject: [PATCH] Prevent registering same interaction request --- src/Interaction/InteractionCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interaction/InteractionCollector.php b/src/Interaction/InteractionCollector.php index f971bd4..2671784 100644 --- a/src/Interaction/InteractionCollector.php +++ b/src/Interaction/InteractionCollector.php @@ -28,7 +28,7 @@ public function registerRequest(InteractionRequest $request): void $name = $request->getName(); if ($this->hasRequest($name)) { - throw new RelazyException(sprintf('Request [%s] already registered', $name)); + return; } $this->requests[$name] = $request;