PHP code example of spiritdead / yii2-resque

1. Go to this page and download the library: Download spiritdead/yii2-resque library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

spiritdead / yii2-resque example snippets


'components' => [
    ...
    'yiiResque' => [
        'class' => 'spiritdead\yii2resque\components\YiiResque',
        'server' => 'localhost',
        'port' => '6379'
    ],
    ...
],

'bootstrap' => [
    ...
    'resque',
    ...
],
'modules' => [
    ...
    'resque' => [
        'class' => 'spiritdead\yii2resque\Module',
        'layout' => '',
        'layoutAlias' => ''
    ],
    ...
],

return [
    ...
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationNamespaces' => [
                'spiritdead\yii2resque\migrations'
            ],
            //'migrationPath' => null, // allows to disable not namespaced migration completely
        ],
    ],
    ...
];