r39u1/yii2-redirect

Redirect module for CMF2

1.0.2 2019-11-04 15:01 UTC

This package is auto-updated.

Last update: 2024-07-05 01:33:02 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist r39u1/yii2-redirect "*"

or add

"r39u1/yii2-redirect": "*"

to the require section of your composer.json file.

Configure

frontend:

'container' => [
        'definitions' => [
            \r39u1\redirect\source\RedirectSourceInterface::class => [
                'class' => \r39u1\redirect\source\CsvRedirectSource::class,
                'csvPath' => '@app/redirect/redirect.csv',
            ]
        ],
    ],

...

    'modules' => [
        'redirect' => [
            'class' => \r39u1\redirect\Module::class,
        ],
    ],

...

    'bootstrap' => [
        'redirect',
    ],