mapkuff / ZfcUserDoctrineOrmRbac

Zf2 Module which integrate ZfcRbac with ZfcUserDoctrineOrm
0 stars 0 forks source link

can you submit your codes #1

Open mingming2033 opened 8 years ago

mingming2033 commented 8 years ago

hello, I am studying zfcrbac with zfcuser modules ,I real want to know how you integrate ZfcRbac with ZfcUserDoctrineOrm.Can you send your examples to my email ? lgmzhuce@163.com.Thanks!

mapkuff commented 8 years ago

there're 2 ways to do that. 1, create your own IdentityProviderInterface and transform UserEntity to new instance which implemnts IdentityInterface.

  1. make your User entity implement IdentityInterface and make sure getRoles() function will return array of RoleInterface.

On Thu, Mar 17, 2016 at 5:57 PM, mingming2033 notifications@github.com wrote:

hello, I am studying zfcrbac with zfcuser modules ,I real want to know how you integrate ZfcRbac with ZfcUserDoctrineOrm.Can you send your examples to my email ? lgmzhuce@163.com.Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/evilband7/ZfcUserDoctrineOrmRbac/issues/1

mingming2033 commented 8 years ago

Thanks, But I have not understand how to integrate ZfcRbac ZfcUser ZfcUserDoctrineOrm .

mapkuff commented 8 years ago

I create new repository for ZfcUserDoctrineOrm and ZfcRbac integration if you interested. https://github.com/evilband7/RbacUserDoctrineOrm