[Workflow] re-add workflow.definition tag to workflow services
This commit is contained in:
parent
a25c2af559
commit
4df2dc5aaa
@ -652,6 +652,10 @@ class FrameworkExtension extends Extension
|
||||
$definitionDefinition->addArgument($transitions);
|
||||
$definitionDefinition->addArgument($initialMarking);
|
||||
$definitionDefinition->addArgument($metadataStoreDefinition);
|
||||
$definitionDefinition->addTag('workflow.definition', [
|
||||
'name' => $name,
|
||||
'type' => $type,
|
||||
]);
|
||||
|
||||
// Create MarkingStore
|
||||
if (isset($workflow['marking_store']['type'])) {
|
||||
|
@ -311,6 +311,8 @@ abstract class FrameworkExtensionTest extends TestCase
|
||||
$workflowDefinition->getArgument(0),
|
||||
'Places are passed to the workflow definition'
|
||||
);
|
||||
|
||||
$this->assertSame(['workflow.definition' => [['name' => 'legacy', 'type' => 'state_machine']]], $workflowDefinition->getTags());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user