Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (34 sloc) 1.41 KB

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 :doc:`upgrade guide <upgrade-guide>`.

Installation

Download the SymfonyBridge with composer.

composer require simple-bus/symfony-bridge

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

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 :doc:`CommandBusBundle <command-bus-bundle>`, :doc:`EventBusBundle <event-bus-bundle>` and :doc:`DoctrineORMBridgeBundle <doctrine-orm-bridge-bundle>`.