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 to Builder to allow post-deployment updates of roles and permissions
Moved new $ruleClass in Permission to separate method instantiateRule to make easier injection of Lumen's Container
Moved new Assignment, new Permission and new Role calls in Builder to separate methods to make easier replacement of default Entity implementations
Changed private to protected 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.
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:
$entityClass
constructor parameters for Doctrine storage implementations$buildAssignments
property toBuilder
to allow post-deployment updates of roles and permissionsnew $ruleClass
inPermission
to separate methodinstantiateRule
to make easier injection of Lumen'sContainer
new Assignment
,new Permission
andnew Role
calls inBuilder
to separate methods to make easier replacement of default Entity implementationsprivate
toprotected
everywhere to make extension of default implementations easierIf you're wondering about having any of this changes in your upstream project, let me know.
BTW, thanks for great project.