I have read a few different Zend books where ACL and Auth are implemented using composition. They generally involve Action Helpers with preDispatch methods, registered in the bootstrap.
Now, in all of the coding so far, the same ACL and Auth methods are executed for each of my controllers. Therefore I am thinking that I might just as well use inheritance to accomplish this. Am I missing something? Inheritance just seems a bit more straightforward.
Earlier on I was using Action Helpers to avoid having to load all the rules into the ACL object. (I was just registering the current controller as the ACL resource, and adding the rules for that).
When I came to integrate Zend Navigation, however, I found that I needed all the ACL rules (irrespective of controller), in order to work out which menu options to present to the user.
I guess that with composition, my ACL and Auth helpers are easier to use on other projects, but that's only a small benefit in my case.
Thanks!