Silex 2.* service provider for Symfony Workflow component.
The Workflow component provides tools for managing a workflow or finite state machine. symfony/workflow was introduced in Symfony 3.2.
composer require angyvolin/silex-worflow
To be able to use twig helpers you also require a symfony/twig-bridge package:
composer require symfony/twig-bridge
Register the service and pass workflow configuration:
<?php
use Angyvolin\Provider\WorkflowServiceProvider;
$app->register(new WorkflowServiceProvider(), array(
'workflow.config' => $workflowConfig,
));
composer install
phpunit