Getting started with Symfony

Using the Symfony framework will hide some of the complexity compared to when use are interacting directly with the components. The SymfonyBridge package contains the following bundles which can be used to integrate SimpeBus with a Symfony application:

Are you upgrading from a previous version? Read the upgrade guide.

Installation

Download the SymfonyBridge with composer.

1
composer require simple-bus/symfony-bridge

When composer is done you can enable the bundles you want in the AppKernel.php

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            //...
            new SimpleBus\SymfonyBridge\SimpleBusCommandBusBundle(),
            new SimpleBus\SymfonyBridge\SimpleBusEventBusBundle(),
            new SimpleBus\SymfonyBridge\DoctrineOrmBridgeBundle(),
        )
        //...
    }
    //...
}

Read more how you use the bundles in the documentation pages for CommandBusBundle, EventBusBundle and DoctrineORMBridgeBundle.