Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for laravel 5.6, replace deprecated method call #1

Open
wants to merge 2 commits into
base: rollup
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"symfony/workflow": "^3.3 | ^4.0",
"symfony/process": "^3.3 | ^4.0",
"symfony/event-dispatcher": "^3.3 | ^4.0",
"illuminate/console": "5.3.* | 5.4.* | 5.5.*",
"illuminate/support": "5.3.* | 5.4.* | 5.5.*"
"illuminate/console": "5.3.* | 5.4.* | 5.5.* | 5.6.*",
"illuminate/support": "5.3.* | 5.4.* | 5.5.* | 5.6.*"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/WorkflowRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function get($subject, $workflowName = null)
*/
public function add(Workflow $workflow, $supportStrategy)
{
return $this->registry->add($workflow, new ClassInstanceSupportStrategy($supportStrategy));
return $this->registry->addWorkflow($workflow, new ClassInstanceSupportStrategy($supportStrategy));
}

/**
Expand Down