Skip to content

Commit

Permalink
Fix register state machine pass
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Jun 21, 2023
1 parent 3fdbabc commit edbdd05
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,28 +114,6 @@ private function registerSymfonyWorkflowStateMachine(ContainerBuilder $container
$stateMachineDefinition->addArgument(new Reference('workflow.registry'));
}

private function registerWinzouStateMachine(ContainerBuilder $container): void
{
if (!$this->isWinzouStateMachineEnabled($container)) {
return;
}

$stateMachineDefinition = $container->register('sylius.resource_controller.state_machine.winzou', StateMachine::class);
$stateMachineDefinition->setPublic(false);
$stateMachineDefinition->addArgument(new Reference('sm.factory'));
}

private function registerSymfonyWorkflowStateMachine(ContainerBuilder $container): void
{
if (!$this->isSymfonyWorkflowEnabled($container)) {
return;
}

$stateMachineDefinition = $container->register('sylius.resource_controller.state_machine.symfony', Workflow::class);
$stateMachineDefinition->setPublic(false);
$stateMachineDefinition->addArgument(new Reference('workflow.registry'));
}

private function setSymfonyWorkflowAsStateMachine(ContainerBuilder $container): void
{
if (!$this->isSymfonyWorkflowEnabled($container)) {
Expand Down

0 comments on commit edbdd05

Please sign in to comment.