Skip to content

ignatenkovnikita/yii2-queuemanager

Repository files navigation

Yii2 Queue Manager

Latest Stable Version Total Downloads Latest Unstable Version License

Yii2 Queue Manager

2017-10-21_13-55-13

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist ignatenkovnikita/yii2-queuemanager "*"

or add

"ignatenkovnikita/yii2-queuemanager": "*"

to the require section of your composer.json file.

Usage

Apply migrations

./console/yii migrate --migrationPath=vendor/ignatenkovnikita/yii2-queuemanager/migrations/

Once the extension is installed, simply use it in your code by :

'modules' => [
        'queuemanager' => [
            'class' => \ignatenkovnikita\queuemanager\QueueManager::class
        ]
],
'components' => [
        'queue' => [
            'class' => \yii\queue\redis\Queue::class,
            'as log' => \yii\queue\LogBehavior::class,
            'as quuemanager' => \ignatenkovnikita\queuemanager\behaviors\QueueManagerBehavior::class
            // Other driver options
        ],
 ]```