Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bethrezen/yii2-cached-rbac-dbmanager
Cached DBManager for yii2 RBAC
https://github.com/bethrezen/yii2-cached-rbac-dbmanager
Last synced: 8 days ago
JSON representation
Cached DBManager for yii2 RBAC
- Host: GitHub
- URL: https://github.com/bethrezen/yii2-cached-rbac-dbmanager
- Owner: bethrezen
- License: gpl-3.0
- Created: 2014-06-02T08:02:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-16T11:23:42.000Z (over 9 years ago)
- Last Synced: 2024-10-11T21:55:21.140Z (25 days ago)
- Language: PHP
- Size: 171 KB
- Stars: 9
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Cached DBManager for yii2 RBAC
==============================
Allows caching of permissions in yii\rbac\DbManager**WARNING** Yii2 now supports native cache for yii\rbac\DbManager. See https://github.com/yiisoft/yii2/issues/3168
Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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',
],
]```