E679 [Workflow] Introduce concept of SupportStrategyInterface by andesk · Pull Request #20751 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Workflow] Introduce concept of SupportStrategyInterface #20751

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

Closed
wants to merge 13 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
[Workflow] fixing service definition of workflow registry in framewor…
…k bundle
  • Loading branch information
andesk committed Dec 14, 2016
commit d22fe018bb141476a3435e2de22522cfb6c27fc8
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ private function registerWorkflowConfiguration(array $workflows, ContainerBuilde
Workflow\SupportStrategy\ClassInstanceSupportStrategy::class, array($supportedClassName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use a use statement instead of using the FQCN here.

);
$strategyDefinition->setPublic(false);
$registryDefinition->addMethodCall('add', array(new Reference($workflowId), $supportedClassName));
$registryDefinition->addMethodCall('add', array(new Reference($workflowId), $strategyDefinition));
}
}
if (isset($workflow['support_strategy'])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could probably be an elseif as the two options are exclusive

Expand Down
0