Fix deprecation on single task workflow declaration

This commit is contained in:
Julien Fastré 2023-07-27 22:52:02 +02:00
parent da6f8511a8
commit d08980c8d1
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -80,15 +80,13 @@ class ChillTaskExtension extends Extension implements PrependExtensionInterface
'workflows' => [ 'workflows' => [
'task_default' => [ 'task_default' => [
'marking_store' => [ 'marking_store' => [
'type' => 'multiple_state', 'type' => 'method',
'arguments' => [ 'property' => 'currentStates',
'currentStates',
],
], ],
'type' => 'state_machine', 'type' => 'state_machine',
'support_strategy' => TaskWorkflowManager::class, 'support_strategy' => TaskWorkflowManager::class,
'places' => ['new', 'in_progress', 'closed', 'canceled'], 'places' => ['new', 'in_progress', 'closed', 'canceled'],
'initial_place' => 'new', 'initial_marking' => ['new'],
'transitions' => [ 'transitions' => [
'start' => [ 'start' => [
'from' => 'new', 'from' => 'new',