krasavcheg.ua/chain-command-bundle

Symfony bundle - implements command chaining functionality.

dev-master 2017-01-14 14:10 UTC

This package is not auto-updated.

Last update: 2025-04-26 23:10:03 UTC


README

ChainCommandBundle is a Symfony bundle for command chaining functionality.

Installation

###Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require krasavcheg.ua/chain-command-bundle

###Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list (FooBundle and BarBundle provided for demo purposes) of registered bundles in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new krasavchegUa\FooBundle\FooBundle(),
            new krasavchegUa\BarBundle\BarBundle(),
            new krasavchegUa\ChainCommandBundle\ChainCommandBundle(),
        );

        // ...
    }

    // ...
}

###Step 3: Run command

php bin/console foo:hello

Usage?

See documentation.