Skip to content

Commit 91e670d

Browse files
committed
Remove symfony 4.1 deprecation messages
1 parent 4988f7c commit 91e670d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WorkflowRegistry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Symfony\Component\Workflow\MarkingStore\SingleStateMarkingStore;
1212
use Symfony\Component\Workflow\Registry;
1313
use Symfony\Component\Workflow\StateMachine;
14-
use Symfony\Component\Workflow\SupportStrategy\ClassInstanceSupportStrategy;
14+
use Symfony\Component\Workflow\SupportStrategy\InstanceOfSupportStrategy;
1515
use Symfony\Component\Workflow\Transition;
1616
use Symfony\Component\Workflow\Workflow;
1717

@@ -75,7 +75,7 @@ public function get($subject, $workflowName = null)
7575
*/
7676
public function add(Workflow $workflow, $supportStrategy)
7777
{
78-
$this->registry->add($workflow, new ClassInstanceSupportStrategy($supportStrategy));
78+
$this->registry->addWorkflow($workflow, new InstanceOfSupportStrategy($supportStrategy));
7979
}
8080

8181
/**

0 commit comments

Comments
 (0)