yii2-redis-rbac
yii2-redis-rbac copied to clipboard
Yii2 Redis / RBAC integration
Redis Yii2 RBAC integration
This extension allow the developper to use REDIS database as the RBAC repository.
Installation
If you use Packagist for installing packages, then you can update your composer.json like this :
{
"require": {
"sweelix/yii2-redis-rbac": "*"
}
}
Howto use it
Add 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
Running the tests
Before running the tests, you should edit the file tests/config/redis.php and change the config to match your environment.
Contributing
All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch , and send us a pull request.