Add style to Symfony workflow dumps
composer require alexislefebvre/symfony-workflow-style
Register bundle in Kernel
(if not already done automatically by Symfony Flex):
new \AlexisLefebvre\Bundle\SymfonyWorflowStyleBundle\SymfonyWorflowStyleBundle(),
Add style to your workflow, see examples.
Call command workflow:dump-with-style
, it behaves as workflow:dump
but it add colors to output.
YAML configuration used in examples: workflows.yaml
Style is added to the first transition:
- arrow has custom color
- label has custom text
- label has custom color
And to travis and closed states:
- background color is changed for travis and closed states
- description is added to travis node (only for PUML format)
Labels and colors of one transition and one state are changed.