From d08980c8d1818c5d10eed446023e7d2cffc4e712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 27 Jul 2023 22:52:02 +0200 Subject: [PATCH] Fix deprecation on single task workflow declaration --- .../DependencyInjection/ChillTaskExtension.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillTaskBundle/DependencyInjection/ChillTaskExtension.php b/src/Bundle/ChillTaskBundle/DependencyInjection/ChillTaskExtension.php index 580de1cec..1f30615b7 100644 --- a/src/Bundle/ChillTaskBundle/DependencyInjection/ChillTaskExtension.php +++ b/src/Bundle/ChillTaskBundle/DependencyInjection/ChillTaskExtension.php @@ -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',