├── .php-cs-fixer.dist.php ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── composer.json ├── config └── di.php ├── rector.php ├── src ├── Assignment.php ├── AssignmentsStorageInterface.php ├── CompositeRule.php ├── Exception │ ├── DefaultRolesNotFoundException.php │ ├── ItemAlreadyExistsException.php │ ├── RuleInterfaceNotImplementedException.php │ └── RuleNotFoundException.php ├── Item.php ├── ItemsStorageInterface.php ├── Manager.php ├── ManagerInterface.php ├── Permission.php ├── Role.php ├── RuleContext.php ├── RuleFactoryInterface.php ├── RuleInterface.php ├── SimpleAssignmentsStorage.php ├── SimpleItemsStorage.php └── SimpleRuleFactory.php └── tests ├── AssignmentTest.php ├── AssignmentsStorageTest.php ├── Common ├── AssignmentsStorageTestTrait.php ├── ItemsStorageTestTrait.php ├── ManagerConfigurationTestTrait.php └── ManagerLogicTestTrait.php ├── CompositeRuleTest.php ├── ConfigTest.php ├── Exception ├── DefaultRolesNotFoundExceptionTest.php ├── ItemAlreadyExistsExceptionTest.php ├── RuleInterfaceNotImplementedExceptionTest.php └── RuleNotFoundExceptionTest.php ├── ItemsStorageTest.php ├── ManagerTest.php ├── PermissionTest.php ├── RoleTest.php ├── RuleContextTest.php ├── SimpleRuleFactoryTest.php └── Support ├── AdsRule.php ├── AuthorRule.php ├── BanRule.php ├── FakeAssignmentsStorage.php ├── FakeItemsStorage.php ├── FalseRule.php ├── GuestRule.php ├── SubscriptionRule.php ├── TrueRule.php ├── WannabeRule.php ├── hierarchy.graphml └── hierarchy.png /.php-cs-fixer.dist.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/.php-cs-fixer.dist.php -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/composer.json -------------------------------------------------------------------------------- /config/di.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/config/di.php -------------------------------------------------------------------------------- /rector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/rector.php -------------------------------------------------------------------------------- /src/Assignment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/Assignment.php -------------------------------------------------------------------------------- /src/AssignmentsStorageInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/AssignmentsStorageInterface.php -------------------------------------------------------------------------------- /src/CompositeRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/CompositeRule.php -------------------------------------------------------------------------------- /src/Exception/DefaultRolesNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/Exception/DefaultRolesNotFoundException.php -------------------------------------------------------------------------------- /src/Exception/ItemAlreadyExistsException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/Exception/ItemAlreadyExistsException.php -------------------------------------------------------------------------------- /src/Exception/RuleInterfaceNotImplementedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/Exception/RuleInterfaceNotImplementedException.php -------------------------------------------------------------------------------- /src/Exception/RuleNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/Exception/RuleNotFoundException.php -------------------------------------------------------------------------------- /src/Item.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/Item.php -------------------------------------------------------------------------------- /src/ItemsStorageInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/ItemsStorageInterface.php -------------------------------------------------------------------------------- /src/Manager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/Manager.php -------------------------------------------------------------------------------- /src/ManagerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/ManagerInterface.php -------------------------------------------------------------------------------- /src/Permission.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/Permission.php -------------------------------------------------------------------------------- /src/Role.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/Role.php -------------------------------------------------------------------------------- /src/RuleContext.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/RuleContext.php -------------------------------------------------------------------------------- /src/RuleFactoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/RuleFactoryInterface.php -------------------------------------------------------------------------------- /src/RuleInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/RuleInterface.php -------------------------------------------------------------------------------- /src/SimpleAssignmentsStorage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/SimpleAssignmentsStorage.php -------------------------------------------------------------------------------- /src/SimpleItemsStorage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/SimpleItemsStorage.php -------------------------------------------------------------------------------- /src/SimpleRuleFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/src/SimpleRuleFactory.php -------------------------------------------------------------------------------- /tests/AssignmentTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/AssignmentTest.php -------------------------------------------------------------------------------- /tests/AssignmentsStorageTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/AssignmentsStorageTest.php -------------------------------------------------------------------------------- /tests/Common/AssignmentsStorageTestTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Common/AssignmentsStorageTestTrait.php -------------------------------------------------------------------------------- /tests/Common/ItemsStorageTestTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Common/ItemsStorageTestTrait.php -------------------------------------------------------------------------------- /tests/Common/ManagerConfigurationTestTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Common/ManagerConfigurationTestTrait.php -------------------------------------------------------------------------------- /tests/Common/ManagerLogicTestTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Common/ManagerLogicTestTrait.php -------------------------------------------------------------------------------- /tests/CompositeRuleTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/CompositeRuleTest.php -------------------------------------------------------------------------------- /tests/ConfigTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/ConfigTest.php -------------------------------------------------------------------------------- /tests/Exception/DefaultRolesNotFoundExceptionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Exception/DefaultRolesNotFoundExceptionTest.php -------------------------------------------------------------------------------- /tests/Exception/ItemAlreadyExistsExceptionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Exception/ItemAlreadyExistsExceptionTest.php -------------------------------------------------------------------------------- /tests/Exception/RuleInterfaceNotImplementedExceptionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Exception/RuleInterfaceNotImplementedExceptionTest.php -------------------------------------------------------------------------------- /tests/Exception/RuleNotFoundExceptionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Exception/RuleNotFoundExceptionTest.php -------------------------------------------------------------------------------- /tests/ItemsStorageTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/ItemsStorageTest.php -------------------------------------------------------------------------------- /tests/ManagerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/ManagerTest.php -------------------------------------------------------------------------------- /tests/PermissionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/PermissionTest.php -------------------------------------------------------------------------------- /tests/RoleTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/RoleTest.php -------------------------------------------------------------------------------- /tests/RuleContextTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/RuleContextTest.php -------------------------------------------------------------------------------- /tests/SimpleRuleFactoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/SimpleRuleFactoryTest.php -------------------------------------------------------------------------------- /tests/Support/AdsRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/AdsRule.php -------------------------------------------------------------------------------- /tests/Support/AuthorRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/AuthorRule.php -------------------------------------------------------------------------------- /tests/Support/BanRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/BanRule.php -------------------------------------------------------------------------------- /tests/Support/FakeAssignmentsStorage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/FakeAssignmentsStorage.php -------------------------------------------------------------------------------- /tests/Support/FakeItemsStorage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/FakeItemsStorage.php -------------------------------------------------------------------------------- /tests/Support/FalseRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/FalseRule.php -------------------------------------------------------------------------------- /tests/Support/GuestRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/GuestRule.php -------------------------------------------------------------------------------- /tests/Support/SubscriptionRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/SubscriptionRule.php -------------------------------------------------------------------------------- /tests/Support/TrueRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/TrueRule.php -------------------------------------------------------------------------------- /tests/Support/WannabeRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/WannabeRule.php -------------------------------------------------------------------------------- /tests/Support/hierarchy.graphml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/hierarchy.graphml -------------------------------------------------------------------------------- /tests/Support/hierarchy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yiisoft/rbac/HEAD/tests/Support/hierarchy.png --------------------------------------------------------------------------------