RBAC configuration

Hello everyone,

I’m on windows 7 using Xampp and Yii 2.0.2.

I’ve install the RBAC module, and I rename the database tables.

I’m actually working in the backend part of my app.

But I’ve setup the new tables names in the common main configuration as following




// common/config/main

<?php

return [

    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',

    'components' => [

        'cache' => [

            'class' => 'yii\caching\FileCache',

        ],

        'authManager' => [

            'class' => 'yii\rbac\DbManager',

            'defaultRoles' => ['default_user'],

            'itemTable' => 'permirole',

            'itemChildTable' => 'permirole_composition',

            'assignmentTable' => 'user_permirole',

            'ruleTable' => 'rule',

        ],

    ],

];



But it send me an error telling me that table name is unknown.

Actually I’ve bypass the error with a nasty hack, by hard coding table name in yii/rbac/DbManager, but it would be very nice if anybody have an idea of what I’m doing wrong ?

Thanks in advance