Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 661 Bytes

gii.md

File metadata and controls

28 lines (21 loc) · 661 Bytes

Gii Code generator

You can use the Gii code generator to create a job template.

Configuration

To use the Gii job generator you have to configure it like the following:

if (!YII_ENV_TEST) {
    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        'generators' => [
            'job' => [
                'class' => \yii\queue\gii\Generator::class,
            ],
        ],
    ];
}

After doing so you'll find the generator in the Gii menu.

default