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
$entityClassconstructor parameters for Doctrine storage implementations - Added
$buildAssignmentsproperty toBuilderto allow post-deployment updates of roles and permissions - Moved
new $ruleClassinPermissionto separate methodinstantiateRuleto make easier injection of Lumen'sContainer - Moved
new Assignment,new Permissionandnew Rolecalls inBuilderto separate methods to make easier replacement of default Entity implementations - Changed
privatetoprotectedeverywhere 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...