Yep. Maybe. I'll change this back :).

Ok so now the question is: which choice do we make for the getPermissions / hasPermission of roles? Do we consider that those methods only check the permissions of the role itself (without taking into account the permissions of children) and let this work be done by the Rbac object OR do we stay as it was in ZF2 ?

Maybe @spiffyjr could help?

Envoyé de mon iPhone

> Le 11 déc. 2013 à 20:47, George Cooksey <notifications@github.com> a écrit :
> 
> In library/Zend/Permissions/Rbac/RbacContainer.php:
> 
> > + * Zend Framework (http://framework.zend.com/)
> > + *
> > + * @link      http://github.com/zendframework/zf2 for the canonical source repository
> > + * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
> > + * @license   http://framework.zend.com/license/new-bsd New BSD License
> > + */
> > +
> > +namespace Zend\Permissions\Rbac;
> > +
> > +use RecursiveIteratorIterator;
> > +use Traversable;
> > +
> > +/**
> > + * A RBAC container is just here to store roles and avoid any duplicate
> > + */
> > +class RbacContainer
> That make sense. But, isn't an Rbac inherently a container of roles? In other words, isn't Rbac sufficient to describe it's nature?
> 
> —
> Reply to this email directly or view it on GitHub.