PHPackages                             kitpages/chain-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. kitpages/chain-bundle

ActiveSymfony-bundle[CLI &amp; Console](/categories/cli)

kitpages/chain-bundle
=====================

This is a Symfony2 bundle that executes the classes one after the other.

v1.5.0(13y ago)489BSDPHPPHP &gt;=5.3.2

Since Feb 18Pushed 12y ago3 watchersCompare

[ Source](https://github.com/kitpages/KitpagesChainBundle)[ Packagist](https://packagist.org/packages/kitpages/chain-bundle)[ Docs](https://github.com/kitpages/KitpagesChainBundle)[ RSS](/packages/kitpages-chain-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (7)Used By (0)

KitpagesChainBundle
===================

[](#kitpageschainbundle)

[![Build Status](https://camo.githubusercontent.com/c7259cc3bff75ffed0850181e14bfcb184154e02a1f33eaa5318eef3f0d9ee5c/68747470733a2f2f7472617669732d63692e6f72672f6b697470616765732f4b69747061676573436861696e42756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/kitpages/KitpagesChainBundle)

This bundle is used ton configure a workflow (a chain of steps) in the config.yml in order to execute this workflow from app/console or from PHP.

Versions
--------

[](#versions)

04/23/2013 : v1.5.0 help system chains 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

Actual state
------------

[](#actual-state)

This bundle is stable, tested and under travis-ci.

Installation
------------

[](#installation)

Add KitpagesChainBundle in your composer.json

```
{
    "require": {
        "kitpages/chain-bundle": "*"
    }
}
```

Now tell composer to download the bundle by running the step:

```
$ php composer.phar update kitpages/chain-bundle
```

AppKernel.php

```
$bundles = array(
    ...
    new Kitpages\ChainBundle\KitpagesChainBundle(),
);
```

create a step
-------------

[](#create-a-step)

Each step must implements StepInterface or extend StepAbstract. The DIC is injected to the step with the method setContainer.

```
