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' => [
'task_default' => [
'marking_store' => [
'type' => 'multiple_state',
'arguments' => [
'currentStates',
],
'type' => 'method',
'property' => 'currentStates',
],
'type' => 'state_machine',
'support_strategy' => TaskWorkflowManager::class,
'places' => ['new', 'in_progress', 'closed', 'canceled'],
'initial_place' => 'new',
'initial_marking' => ['new'],
'transitions' => [
'start' => [
'from' => 'new',