Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic database changes to mdmsoft config #447

Open
jyoti2607 opened this issue Sep 3, 2020 · 1 comment
Open

Dynamic database changes to mdmsoft config #447

jyoti2607 opened this issue Sep 3, 2020 · 1 comment

Comments

@jyoti2607
Copy link

I want to update database at runtime dynamically how can i update it for rbac. I tried to update config but its not working and using first db only.

@irosadie
Copy link

i suggest you for create new class extends \yii\rbac\DbManager

class DbManagerHelper extends \yii\rbac\DbManager { public $db = 'db_smart'; }

in web.php -> componens change to
'authManager' => [ 'class' => '{namespace}\DbManagerHelper' ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants