yii2-redis-rbac Use redis as main database for the RBAC system

  1. Requirements
  2. Usage
  3. Changes
  4. Resources

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

[javascript]

{
    "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

0 0
1 follower
0 downloads
Yii Version: 2.0
License: BSD-2-Clause
Category: Auth
Tags: Auth, rbac, redis
Developed by: kiwisoft
Created on: May 2, 2016
Last updated: a year ago

Related Extensions