ZF-2289: Multiple Assertions
Description
I think it would be interesting if it was possible to assign more than one assertion in the allow and deny methods (4th parameter). Or maybe a new method to add more assertions...
Of course you can implement a new Zend_Acl_Assert_Interface class calling multiple asserts, but it's boring.
Thanx
Comments
Posted by Darby Felton (darby) on 2007-12-10T12:30:11.000+0000
I think that the proper solution is, as you suggested, to implement the assertion method... however you want, including assertion chains. This is actually quite trivial to do, and I don't see a compelling need to bloat the API with this. If you disagree, please feel free to reopen the issue with more feedback. Thank you! :)
Posted by Marcos Gil Fuertes (marcis) on 2007-12-12T06:35:59.000+0000
OK, thanks.
I was implementing a new class (calling multiple asserts) for each combination of asserts in the application. Now, I realized it can be done by implementing a generic 'MultiAssert' class like this: