mwillbanks/mw-worker

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.

A ZF2 modules that provides a base skeleton for implementing workers.

dev-master 2014-01-15 16:07 UTC

This package is not auto-updated.

Last update: 2020-01-24 14:54:35 UTC


README

  1. Install via composer "mwillbanks/mw-worker".
  2. Move bin/worker.php to your project root
  3. Workers to be placed as a controller invokable:
return array(
    'controllers' => array(
        'invokables' => array(
            'myWorker' => 'Application\Worker\MyWorker',
        ),
    ),
);
  1. php worker.php my

Todo

  • Remove ControllerManager, ControllerLoaderFactory to be WorkerManager, WorkerLoaderFactory
  • Update DispatchListener to work with Workers rather than controllers
  • Abstract Worker to provide additional methods and functionality
  • Provide adapters for working with different queue types
  • Unit tests