panix/mod-forsage-studio

Module forsage

2.0.3 2023-06-25 09:21 UTC

This package is auto-updated.

Last update: 2024-04-13 20:03:09 UTC


README

Module for PIXELION CMS

Forsage API documentation

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-forsage-studio "*"

or add

"panix/mod-forsage-studio": "*"

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' => [
    'forsage' => [
        'class' => 'panix\mod\forsage\Module',
    ],
],
'components' => [
    'log' => [
        ..
        'targets'=>[
            [
                'class' => 'panix\engine\log\FileTarget',
                'logFile' => '@runtime/logs/forsage.log',
                'categories' => ['forsage'],
                'logVars' => []
            ]
        ]
    ],
]

Migrate

php cmd migrate --migrationPath=vendor/panix/mod-forsage-studio/migrations

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

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