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
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.