Because generators are not supported on PHP 5.4

Envoyé de mon iPhone

> Le 7 janv. 2014 à 12:05, arekkas <notifications@github.com> a écrit :
> 
> In src/Rbac/Rbac.php:
> 
> >   */
> >  class Rbac
> >  {
> >      /**
> > -     * Determines if access is granted by checking the role and child roles for permission.
> > +     * @var TraversalStrategyInterface
> > +     */
> > +    protected $traversalStrategy;
> > +
> > +    /**
> > +     * @param null|TraversalStrategyInterface $strategy
> > +     */
> > +    public function __construct(TraversalStrategyInterface $strategy = null)
> > +    {
> > +        $this->traversalStrategy = $strategy ?: new RecursiveRoleIteratorStrategy;
> Why aren't you using the GeneratorStrategy by default? It's faster and doesn't have problems with doctrine collections
> 
> —
> Reply to this email directly or view it on GitHub.