This extension allow the developper to use REDIS database as the RBAC repository.
If you use Packagist for installing packages, then you can update your composer.json like this :
{
"require": {
"sweelix/yii2-redis-rbac": "*"
}
}
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
Before running the tests, you should edit the file tests/config/redis.php and change the config to match your environment.
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.
.gitattributes
HHVM
and PHP 5.6
.gitattributes
PHP 7.1
testinggetChildRoles($roleName)
canAddChild()
to allow correct build
Comments