panix / mod-flashka
Module flashka
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:pixelion-module
Requires
- yiisoft/yii2-queue: 2.x-dev
Conflicts
This package is auto-updated.
Last update: 2024-11-11 04:18:54 UTC
README
Module for PIXELION CMS
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
Content Management System "PIXELION CMS"
www.pixelion.com.ua
The module is under development, any moment can change everything.