panix/mod-flashka

Module flashka

dev-main 2023-10-11 02:00 UTC

This package is auto-updated.

Last update: 2024-11-11 04:18:54 UTC


README

Module for PIXELION CMS

API documentation API Changes

Latest Stable Version Latest Unstable Version Total Downloads Monthly Downloads Daily Downloads License

Installation

The preferred way to install this extension is through composer.

Either run

php composer require --prefer-dist panix/mod-flashka "*"

or add

"panix/mod-flashka": "*"

to the require section of your composer.json file.

Add to common config.

'bootstrap' => [
    ..
    'queue',
],
'components' => [
    ...
    'queue' => [
        'class' => 'yii\queue\db\Queue',
        'channel' => 'default', // Выбранный для очереди канал
        'mutexTimeout' => 5,
        'ttr' => 2 * 60, // Максимальное время выполнения задания
        'attempts' => 3, // Максимальное кол-во попыток
        'deleteReleased' => true,
        'mutex' => \yii\mutex\MysqlMutex::class, // Мьютекс для синхронизации запросов
        'as log' => \yii\queue\LogBehavior::class,
        // Other driver options
    ],
]

Add to console config.

'controllerMap' => [
    'migrate' => [
        ...
        'migrationNamespaces' => [
            'yii\queue\db\migrations',
        ],
    ]
],

Add to web config.

'modules' => [
    'flashka' => [
        'class' => 'panix\mod\flashka\Module',
    ],
],
'components' => [
    'log' => [
        ..
        'targets'=>[
            [
                'class' => 'panix\engine\log\FileTarget',
                'logFile' => '@runtime/logs/flashka.log',
                'categories' => ['flashka'],
                'logVars' => []
            ]
        ]
    ],
]

Migrate

php cmd migrate --migrationPath=vendor/panix/mod-flashka/migrations

PIXELION CMS!
Content Management System "PIXELION CMS"
www.pixelion.com.ua

The module is under development, any moment can change everything.