mcfedr/queue-manager-bundle

A bundle for managing job queues

1.2.1 2014-05-27 13:17 UTC

README

A bundle for accessing job queues

Latest Stable Version License

Install

Composer

php composer.phar require mcfedr/queue-manager-bundle

AppKernel

Include the bundle in your AppKernel

public function registerBundles()
{
    $bundles = array(
        ...
        new mcfedr\Queue\QueueManagerBundle\mcfedrQueueManagerBundle(),

Config

This is an example config if you have installed mcfedr/queue-driver-pheanstalk-bundle

mcfedr_queue_manager:
    managers:
        default:
            driver: beanstalkd
            options:
                host: 127.0.0.1
                port: 11300
                default_queue: mcfedr_queue

Usage

Each manager will be a service you can access with the name "mcfedr_queue.$name". It implements the QueueManager interface, where you can call just 3 simple methods.