fixed CHANGELOG
This commit is contained in:
parent
603f5cf0c3
commit
ddf0c951e2
@ -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;
|
||||
|
||||
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
|
||||
-----
|
||||
|
Reference in New Issue
Block a user