Skip to content

Commit 225d460

Browse files
committed
fixes deprecated class name warning due to symfony upgrade 3.3
1 parent 42f5f5e commit 225d460

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WorkflowRegistry.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Symfony\Component\Workflow\StateMachine;
1414
use Symfony\Component\Workflow\Transition;
1515
use Symfony\Component\Workflow\Workflow;
16+
use Symfony\Component\Workflow\SupportStrategy\ClassInstanceSupportStrategy;
1617

1718
/**
1819
* @author Boris Koumondji <brexis@yahoo.fr>
@@ -55,7 +56,7 @@ public function __construct(array $config)
5556
$workflow = $this->getWorkflowInstance($name, $workflowData, $definition, $markingStore);
5657

5758
foreach ($workflowData['supports'] as $supportedClass) {
58-
$this->registry->add($workflow, $supportedClass);
59+
$this->registry->add($workflow, new ClassInstanceSupportStrategy($supportedClass));
5960
}
6061
}
6162
}

0 commit comments

Comments
 (0)