Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

BsbCrossbarPusherStrategy is a strategy for the SlmQueue ZF2 module that provides the ability to publish worker events to a crossbar.io HTTP Pusher Service.

License

Notifications You must be signed in to change notification settings

bushbaby/BsbCrossbarPusherStrategy

Repository files navigation

BsbCrossbarPusherStrategy

BsbCrossbarPusherStrategy is a strategy for the SlmQueue ZF2 module that provides the ability to publish worker events to a crossbar.io HTTP Pusher Service.

-- NOT PRODUCTION READY --

Latest Stable Version Total Downloads Latest Unstable Version License

Build Status Code Coverage Scrutinizer Code Quality


Installation

BsbCrossbarPusherStrategy requires Composer. To install it into your project, just add the following line into your composer.json file:

composer.phar require "bushbaby/slmqueue-crossbarpusherstrategy:~1.0"

Enable the module by adding BsbCrossbarPusherStrategy in your application.config.php file.

Configuration

By enabling this module a new strategy is registered into the strategy manager of SlmQueue. You should then activate it by adding it some configuration to the appropriate worker queues. A suggested place is the slm_queue.global.php in your autoload configuration directory.

example: enabled the BsbCrossbarPusherStrategy for the queue called default with [finish]

'worker_strategies' => array(
    'default' => array( // per worker
    ),
    'queues' => array( // per queue
        'default' => array(
            'BsbCrossbarPusherStrategy\Strategy\CrossbarPusherStrategy' => array(
                ... options
            ),
        ),
    ),
),

You can configure CrossbarPusherStrategy in every individual worker or queue in this manner. However it might be more convenient to configure this globally and only override specific options. To do this copy the config/bsb_crossbarpusherstrategy.local.php.dist to the application autoload directory and modify accordingly.

CrossbarPusherStrategy options

[to be written]

About

BsbCrossbarPusherStrategy is a strategy for the SlmQueue ZF2 module that provides the ability to publish worker events to a crossbar.io HTTP Pusher Service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages