gupalo / bpmnworkflow-bundle
Bpmn Workflow Bundle
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:CSS
Type:symfony-bundle
Requires
- php: >=8.1
- ext-json: *
- doctrine/doctrine-bundle: ^2.5
- doctrine/orm: ^2.11|^3.0
- gupalo/bpmnworkflow: ^1.0
- sensio/framework-extra-bundle: ^6.2
- symfony/asset: ^6.0
- symfony/expression-language: ^6.0
- symfony/form: ^6.0
- symfony/orm-pack: ^2.2
- symfony/security-core: ^6.0
- symfony/translation: ^6.0
- symfony/twig-bundle: ^6.0
- symfony/validator: ^6.0
- symfony/yaml: ^6.0
Requires (Dev)
- nelmio/alice: ^3.10
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
- symfony/phpunit-bridge: ^6.0
README
Install
composer require gupalo/bpmnworkflow-bundle
Add to config/bundles.php
Gupalo\BpmnWorkflowBundle\BpmnWorkflowBundle::class => ['all' => true]
Add to config/packages/doctrine.yaml
mappings: BpmnWorkflowBundle: type: attribute
Add to config/routes/annotations.yaml
bpmnWorkflow: resource: '@BpmnWorkflowBundle/Resources/config/routes.yaml'
Add to config/packages/twig.yaml
twig: default_path: '%kernel.project_dir%/templates' form_themes: - bootstrap_4_layout.html.twig - '@BpmnWorkflow/_elements/bpmn_form_style.html.twig'
Save Trace as file. Add to services.yaml
Gupalo\BpmnWorkflow\Trace\TraceFileStorage: bind: $dirPath: '%kernel.project_dir%/var/traces'
Execute
php bin/console doctrine:migrations:diff php bin/console doctrine:migrations:migrate php bin/console assets:install
Test
For test in main app need install require-dev dependency
composer require symfony/phpunit-bridge --dev composer require phpunit/phpunit --dev composer require nelmio/alice --dev
Add to composer.json autoload-dev section
"autoload-dev": { "psr-4": { "App\\Tests\\": "tests/", "Gupalo\\BpmnWorkflowBundle\\Tests\\": "vendor/gupalo/bpmnworkflow-bundle/tests/" } }
Execute
composer dump-autoload php vendor/bin/phpunit vendor/gupalo/bpmnworkflow-bundle