Yii 2.0: yii2-redis-rbac

Use redis as main database for the RBAC system
1 follower

This extension allow the use of REDIS as main database for the whole RBAC stuff.

Requirements

  • Yii 2.0

Usage

Add the extension to your composer.json

{
    "require": {
        "sweelix/yii2-redis-rbac": "~1.0"
    }
}

Add the extension to your configuration

return [
    //....
    'components' => [
        'authManager' => [
            'class' => 'sweelix\rbac\redis\Manager',
            'db' => 'redis',
        ],
        // ...
    ],
];

For further instructions refer to the related section in the Yii Definitive Guide

Changes

  • Fix Yii 2.0.10 compat

Resources

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet