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
|
* 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.
|
* Added a context to `Workflow::apply()`. The `MethodMarkingStore` could be used to leverage this feature.
|
||||||
* Add style to transitions by declaring metadata:
|
* Add style to transitions by declaring metadata:
|
||||||
```
|
|
||||||
$places = range('a', 'b');
|
use Symfony\Component\Workflow\Definition;
|
||||||
$transition = new Transition('t1', 'a', 'b');
|
use Symfony\Component\Workflow\Metadata\InMemoryMetadataStore;
|
||||||
$transitions[] = $transition;
|
|
||||||
$transitionsMetadata = new \SplObjectStorage();
|
$transitionsMetadata = new \SplObjectStorage();
|
||||||
$transitionsMetadata[$transition] = [
|
$transitionsMetadata[$transition] = [
|
||||||
'color' => 'Red',
|
'color' => 'Red',
|
||||||
'arrow_color' => '#00ff00',
|
'arrow_color' => '#00ff00',
|
||||||
];
|
];
|
||||||
$inMemoryMetadataStore = new InMemoryMetadataStore([], [], $transitionsMetadata);
|
$inMemoryMetadataStore = new InMemoryMetadataStore([], [], $transitionsMetadata);
|
||||||
return new Definition($places, $transitions, null, $inMemoryMetadataStore);
|
|
||||||
```
|
return new Definition($places, $transitions, null, $inMemoryMetadataStore);
|
||||||
|
|
||||||
4.1.0
|
4.1.0
|
||||||
-----
|
-----
|
||||||
|
Reference in New Issue
Block a user