alexislefebvre / symfony-workflow-style
Symfony bundle adding style to Symfony workflow dumps
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
- symfony/config: ^4.1
- symfony/console: ^4.1
- symfony/dependency-injection: ^4.1
- symfony/framework-bundle: ^4.1
- symfony/http-kernel: ^4.1
- symfony/workflow: ^4.1
- symfony/yaml: ^4.1
Requires (Dev)
- phpunit/phpunit: ~6.5.6 || ~7.0
Conflicts
- symfony/framework-bundle: >= 4.1.8 < 4.1.9 || >= 4.2.0 < 4.2.1
README
⚠️ This code has been merged in symfony/symfony#29538, install Symfony 4.3+ to use this feature.
Add style to Symfony workflow dumps
Install
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.
Examples
YAML configuration used in examples: workflows.yaml
pull_request
workflow: marking_store.type
is single_state
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)
PUML
Dot
article
workflow: marking_store.type
is multiple_state
Labels and colors of one transition and one state are changed.