I've started a project that utilizes Zend Framework 2. I'm in the process of building authentication and am looking ahead to using ACL to manage permissions within my application. What strikes me about ACL is that it has no persistence mechanism and that storing permissions descriptions is "left as an exercise." I'm trying to get my head around how one might use this component in action. Does anyone have any example code that uses ACL to store permissions for a user (or collection of users) ? I'm imagining there might be some DB routine that queries a user table and loops through some returned records to define the current users's role and this is somehow checked against a collection of defined resources, but I'm having a bit of trouble getting my head around how the code might look in a real-live application.
Any help would be much appreciated.