zf-fr / rbac

Zend Framework 3 prototype for the Zend\Permissions\Rbac component
27 stars 14 forks source link

[WIP] getPermissions in RoleInterface #19

Closed Orkin closed 6 years ago

Orkin commented 9 years ago

@bakura10 what do you think about this ? Need more test etc ... It's just a POC

bakura10 commented 9 years ago

This is a major BC break. As this package will likely be moved to zf repo at some point, I'd suggest you add this idea there https://github.com/zendframework/zend-permissions-rbac/pull/1

I'm not sure to remember why this is not included. I think this is how it was before and we removed it.

The thing is that the permissions belong to the identity.

danizord commented 9 years ago

We don't have calls to this method, so why would we require people to implement it?

Orkin commented 9 years ago

For this : https://github.com/ZF-Commons/zfc-rbac/pull/305

danizord commented 9 years ago

@Orkin nothing to do with this component. Should be an interface of ZfcRbac.