overseer
overseer copied to clipboard
Contracts implementaion
Hi, @crisu83
Just wanna let you know about my fork. It was hard for me to inject your library into Lumen 5 framework, so I decided to fork it and made this changes:
- Created corresponding interfaces for Role, Permission, and Rule entities. This change allows replacing default entity classes with external implementations
- Added
$entityClass
constructor parameters for Doctrine storage implementations - Added
$buildAssignments
property toBuilder
to allow post-deployment updates of roles and permissions - Moved
new $ruleClass
inPermission
to separate methodinstantiateRule
to make easier injection of Lumen'sContainer
- Moved
new Assignment
,new Permission
andnew Role
calls inBuilder
to separate methods to make easier replacement of default Entity implementations - Changed
private
toprotected
everywhere to make extension of default implementations easier
If you're wondering about having any of this changes in your upstream project, let me know.
BTW, thanks for great project.
We use Lumen a lot too so please, make a pull request.
@AnatolyRugalev you should check our Lumen implementation at https://github.com/digiaonline/lumen-rbac
Totally forgot we had that one...