chippyash/Zend-Acl-Xml-Builder

View on GitHub
src/Chippyash/Zend/Acl/Xml/Translate/xsl/acl.json

Summary

Maintainability
Test Coverage
{"acl" : {"xsi:schemaLocation" : "http://schema.zf4.biz/schema/zendacl http://schema.zf4.biz/schema/zendacl", "roles" : {"role" : [{"type" : "GenericRole", "" : "guest"}, {"parents" : "guest","type" : "Chippyash\Test\Zend\Acl\Xml\Stubs\TestRoleStub", "" : "user"}, {"parents" : "user", "" : "admin"}, {"parents" : "user,admin", "" : "superadmin"}]}, "resources" : {"resource" : [{"resource" : "login"}, {"type" : "Chippyash\Test\Zend\Acl\Xml\Stubs\TestResourceStub", "" : "logout"}, {"type" : "GenericResource", "" : "dashboard"}, {"parent" : "dashboard", "" : "edit"}]}, "rules" : {"rule" : [{"type" : "DENY"}, {"type" : "ALLOW","roles" : "*","resources" : "login","assertion" : "Chippyash\Test\Zend\Acl\Xml\Stubs\TestAssertionStub"}, {"type" : "ALLOW","roles" : "user,superadmin", "privilege" : [{"privilege" : "GET"}, {"privilege" : "POST"}]}]}}}