I am trying to use bjy-authorize, zfcUser and zfc-user-doctrine-orm in ZF2. I installed all module regarding to the manual. To use bjyAuthorize with doctrine, i used this tutorial https://github.com/bjyoungblood/BjyAuthorize/pull/62
How can i create new roles and how can i link them to the users?
The tutorial above uses this to configure the role_providers:
'BjyAuthorize\Provider\Role\DoctrineEntity' => array(
'role_entity_class' => 'Material\Entity\Role',
),
In some other config files for BjyAuthorize this is done with
// this will load roles from the user_role table in a database
// format: user_role(role_id(varchar), parent(varchar))
'BjyAuthorize\Provider\Role\Doctrine' => array(
'table' => 'user_role',
'role_id_field' => 'role_id',
'parent_role_field' => 'parent',
),
What is the difference between these configurations?
Thanks!
./data/Role.php.disp
you'd need to add this to your code and simply install it using the doctrine-CLI or create the table manually. Adding new Roles then you'll need to create a form for it or add it to the DB manually. ADDING roles is not a feature of an Authorization module ;) – Sam