Skip to content

Commit e6b9fb4

Browse files
authored
fix - Use WorkflowInterface instead of Workflow (#36)
This cause an issue with TraceableWorkflow
1 parent d9d7f8d commit e6b9fb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Admin/Extension/WorkflowExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Symfony\Component\Workflow\Exception\InvalidArgumentException;
1414
use Symfony\Component\Workflow\Registry;
1515
use Symfony\Component\Workflow\Transition;
16-
use Symfony\Component\Workflow\Workflow;
16+
use Symfony\Component\Workflow\WorkflowInterface;
1717

1818
/**
1919
* @author Yann Eugoné <[email protected]>
@@ -107,7 +107,7 @@ public function getAccessMapping(AdminInterface $admin): array
107107
/**
108108
* @throws InvalidArgumentException
109109
*/
110-
protected function getWorkflow(object $subject, string $workflowName = null): Workflow
110+
protected function getWorkflow(object $subject, string $workflowName = null): WorkflowInterface
111111
{
112112
return $this->registry->get($subject, $workflowName);
113113
}

0 commit comments

Comments
 (0)