Download the PHP package kitpages/step-bundle without Composer
On this page you can find all versions of the php package kitpages/step-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kitpages/step-bundle
More information about kitpages/step-bundle
Files in kitpages/step-bundle
Package step-bundle
Short Description This is a Symfony2 bundle that contains the step of a workflow system.
License MIT
Homepage https://github.com/kitpages/KitpagesStepBundle
Informations about the package step-bundle
KitpagesStepBundle
This bundle provides a step system for a future workflow system
Versions
11/02/2014 : v1.1.0
- no BC Break
- new : stopwatch to see step usages in the timeline of the SF2 debug toolbar
- enh : more unit tests
05/12/2013 : v1.0.0
- major refactor and separation between chain and steps
Actual state
This bundle is stable, tested and under travis-ci.
Installation
Add KitpagesStepBundle in your composer.json
Now tell composer to download the bundle by running the step:
AppKernel.php
create a step
Each step must implements StepInterface or extend StepAbstract. The DIC is injected to the step with the method setContainer.
Configuration example
The following configuration defines 2 steps :
- kitpagesMep : a production start
- kitpagesCms : instantiate a KitpagesCms
Let's see the configuration in config.yml
using app/console
run a step with app/console
run a step with PHP
Using events
With events, you can alter the way each step is executed. You can :
- prevent the step from running the execute() method. $event->preventDefault()
- alter the step before or after the execution
- change return value
- ...
Create a listener :
register listener :
old versions before fork
04/23/2013 : v1.4.0 help system steps 04/18/2013 : v1.3.0 step inheritance with the optional 02/19/2013 : v1.2.0 step parameter template rendering 02/18/2013 : v1.1.0 steps are not container aware anymore. Services are injected in config.yml 02/18/2013 : v1.0.0 first stable version