From e6b9fb48b4ae766412dd762826b8d390f1279bfe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Poirier=20Th=C3=A9or=C3=AAt?= <mpoiriert@gmail.com>
Date: Thu, 4 Jan 2024 03:08:46 -0500
Subject: [PATCH] fix - Use WorkflowInterface instead of Workflow (#36)

This cause an issue with TraceableWorkflow
---
 src/Admin/Extension/WorkflowExtension.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Admin/Extension/WorkflowExtension.php b/src/Admin/Extension/WorkflowExtension.php
index fa27145..4e9260e 100644
--- a/src/Admin/Extension/WorkflowExtension.php
+++ b/src/Admin/Extension/WorkflowExtension.php
@@ -13,7 +13,7 @@
 use Symfony\Component\Workflow\Exception\InvalidArgumentException;
 use Symfony\Component\Workflow\Registry;
 use Symfony\Component\Workflow\Transition;
-use Symfony\Component\Workflow\Workflow;
+use Symfony\Component\Workflow\WorkflowInterface;
 
 /**
  * @author Yann Eugoné <eugone.yann@gmail.com>
@@ -107,7 +107,7 @@ public function getAccessMapping(AdminInterface $admin): array
     /**
      * @throws InvalidArgumentException
      */
-    protected function getWorkflow(object $subject, string $workflowName = null): Workflow
+    protected function getWorkflow(object $subject, string $workflowName = null): WorkflowInterface
     {
         return $this->registry->get($subject, $workflowName);
     }