Skip to content

Commit c550a0b

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: [Workflow] Deprecated DefinitionBuilder::setInitialPlace()
2 parents 12b6885 + 8be809f commit c550a0b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -707,13 +707,10 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
707707
}
708708

709709
if ($validator) {
710-
$realDefinition = (new Workflow\DefinitionBuilder($places))
711-
->addTransitions(array_map(function (Reference $ref) use ($container): Workflow\Transition {
712-
return $container->get((string) $ref);
713-
}, $transitions))
714-
->setInitialPlace($initialMarking)
715-
->build()
716-
;
710+
$trs = array_map(function (Reference $ref) use ($container): Workflow\Transition {
711+
return $container->get((string) $ref);
712+
}, $transitions);
713+
$realDefinition = new Workflow\Definition($places, $trs, $initialMarking);
717714
$validator->validate($realDefinition, $name);
718715
}
719716

0 commit comments

Comments
 (0)