From aaea3b97cfb7b475d924a95e2d7f3c326e176aa9 Mon Sep 17 00:00:00 2001 From: Claudio Varandas Date: Tue, 6 Jun 2017 15:23:38 +0100 Subject: [PATCH] -ignores phpstorm files -fixes deprecated class name warning due to symfony upgrade 3.3 --- .gitignore | 1 + src/WorkflowRegistry.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4df5ff1..7ac8b99 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ vendor/ straight.png composer.lock +.idea \ No newline at end of file diff --git a/src/WorkflowRegistry.php b/src/WorkflowRegistry.php index 9676cab..2fcf84e 100644 --- a/src/WorkflowRegistry.php +++ b/src/WorkflowRegistry.php @@ -79,7 +79,7 @@ public function get($subject, $workflowName = null) */ public function add(Workflow $workflow, $supportStrategy) { - return $this->registry->add($workflow, $supportStrategy); + return $this->registry->add($workflow, new ClassInstanceSupportStrategy($supportStrategy)); } /**