Skip to content

Commit

Permalink
Merge pull request #3 from kadinho/master
Browse files Browse the repository at this point in the history
forgot to fix the add function
  • Loading branch information
brexis authored Nov 17, 2017
2 parents e26cb8c + aaea3b9 commit 1e8cf1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor/
straight.png
composer.lock
.idea
2 changes: 1 addition & 1 deletion src/WorkflowRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit 1e8cf1f

Please sign in to comment.