bethrezen/yii2-cached-rbac-dbmanager

Allows caching of permissions in yii\rbac\DbManager

Installs: 12 448

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 2

Forks: 5

Open Issues: 1

Type:yii2-extension

dev-master 2015-02-16 11:23 UTC

This package is auto-updated.

Last update: 2024-04-11 13:33:09 UTC


README

Allows caching of permissions in yii\rbac\DbManager

WARNING Yii2 now supports native cache for yii\rbac\DbManager. See yiisoft/yii2#3168

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist bethrezen/yii2-cached-rbac-dbmanager "*"

or add

"bethrezen/yii2-cached-rbac-dbmanager": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply configure your application to use \bethrezen\CachedDbManager:


'components' => [
    // the rest of your components section
    'authManager' => [
            'class'=>'\bethrezen\CachedDbManager',
        ],
]