zend framework2 - Move guards to database in ZF2 application with ZfcRbac -


i using zfcrbac managing role-based access control zf2 application. controlling access updating guards in zfc_rbac.global.php file in following way.

     'guards' => [          'zfcrbac\guard\routeguard' => [              'p304'             => ['*'],              'zfcuser/logout'   => ['*'],              'home'             => ['admin', 'engineer', 'user'],              'application*'     => ['admin'],              'appuser*'         => ['admin'],              'clients*'         => ['admin', 'engineer', 'user'],              'zfcadmin*'        => ['admin'],              'zfcuser'          => ['admin', 'engineer', 'user'],              'zfcuser/login'    => ['guest'],          ]      ], 

i struggling find way move database. hope 1 can me move access control definition database.

if using doctrine orm there documentation in zfcrbac on how implement this.


Comments