From ddf0c951e2f6ddb0dca61b94c23c08b746e7f612 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 19 Mar 2019 06:12:32 +0100 Subject: [PATCH] fixed CHANGELOG --- src/Symfony/Component/Workflow/CHANGELOG.md | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Symfony/Component/Workflow/CHANGELOG.md b/src/Symfony/Component/Workflow/CHANGELOG.md index f7a7275bd2..c549efb7e7 100644 --- a/src/Symfony/Component/Workflow/CHANGELOG.md +++ b/src/Symfony/Component/Workflow/CHANGELOG.md @@ -7,18 +7,18 @@ CHANGELOG * Trigger `entered` event for subject entering in the Workflow for the first time * Added a context to `Workflow::apply()`. The `MethodMarkingStore` could be used to leverage this feature. * Add style to transitions by declaring metadata: - ``` - $places = range('a', 'b'); - $transition = new Transition('t1', 'a', 'b'); - $transitions[] = $transition; - $transitionsMetadata = new \SplObjectStorage(); - $transitionsMetadata[$transition] = [ - 'color' => 'Red', - 'arrow_color' => '#00ff00', - ]; - $inMemoryMetadataStore = new InMemoryMetadataStore([], [], $transitionsMetadata); - return new Definition($places, $transitions, null, $inMemoryMetadataStore); - ``` + + use Symfony\Component\Workflow\Definition; + use Symfony\Component\Workflow\Metadata\InMemoryMetadataStore; + + $transitionsMetadata = new \SplObjectStorage(); + $transitionsMetadata[$transition] = [ + 'color' => 'Red', + 'arrow_color' => '#00ff00', + ]; + $inMemoryMetadataStore = new InMemoryMetadataStore([], [], $transitionsMetadata); + + return new Definition($places, $transitions, null, $inMemoryMetadataStore); 4.1.0 -----