aboutcoders/notification-bundle

A symfony bundle that adds process control to the SonataNotificationBundle.

0.2.1 2016-08-29 22:36 UTC

This package is not auto-updated.

Last update: 2024-11-09 19:30:39 UTC


README

A symfony bundle that adds process control to the SonataNotificationBundle and thereby allows to start/stop message processing in a continuous integration environment.

Build Status: Build Status

Installation

Follow the installation instructions of the required third party bundles:

Add the AbcNotificationBundle to your composer.json file

php composer.phar require aboutcoders/notification-bundle

Include the bundle in the AppKernel.php class

public function registerBundles()
{
    $bundles = array(
        // ...
        new Abc\Bundle\NotificationBundle\AbcNotificationBundle(),
    );

    return $bundles;
}

Following the installation instructions of the SonataNotificationBundle you will create or generate a bundle within your application that extends from the SonataNotificationBundle. Since this bundle also extends from the SonataNotificationBundle you have to extend your created/generated bundle from this bundle instead of the SonataNotificationBundle.

class MySonataNotificationBundle extends Bundle
{
    /**
     * {@inheritdoc}
     */
    public function getParent()
    {
        return 'AbcNotificationBundle';
    }
}

ToDo:

  • Provide a pull request for the SonataNotificationBundle that allows to define custom message managers/iterators and thereby make this bundle obsolete