dev-master
9999999-devAuth Dbmanager for Yii2 for Oracle db Customize for Oci8 driver
BSD-3-Clause
The Requires
by Apa Oww
auth yii admin
Auth Dbmanager for Yii2 for Oracle db Customize for Oci8 driver
The preferred way to install this extension is through composer., (*1)
Either run, (*2)
php composer.phar require apaoww/yii2-dbmanager-oci8 "dev-master"
or add, (*3)
"apaoww/yii2-dbmanager-oci8": "dev-master"
to the require section of your composer.json
file., (*4)
Download source at https://github.com/apaoww/yii2-dbmanager-oci8, (*5)
return [ ... 'aliases' => [ '@apaoww/DbManagerOci8' => 'path/to/your/extracted', ... ] ];
Once the extension is installed, simply modify your application configuration as follows :, (*6)
return [ 'components' => [ .... 'authManager' => [ 'class' => 'apaoww\DbManagerOci8\DbManager', // or use 'yii\rbac\DbManager' 'itemTable' => 'SCHEMANAME.AUTH_ITEM', 'assignmentTable' => 'SCHEMANAME.AUTH_ASSIGNMENT', 'itemChildTable' => 'SCHEMANAME.AUTH_ITEM_CHILD', 'ruleTable' => 'SCHEMANAME.AUTH_RULE', ], ];
You may want to create auth's table using migration command. Instead of using yii default migrate (yii migrate), specify the custom migrationPath to point to custom auth's table migration, all column are uppercase., (*7)
php yii migrate --migrationPath=@apaoww/DbManagerOci8/migrations
Auth Dbmanager for Yii2 for Oracle db Customize for Oci8 driver
BSD-3-Clause
auth yii admin