Closed ashatrov closed 7 years ago
My config looks like this:
'zfc_rbac' => [
'role_provider' => [
'ZfcRbac\Role\ObjectRepositoryRoleProvider' => [
'object_manager' => 'doctrine.entitymanager.orm_default',
'class_name' => 'Module\User\Entity\Role',
'role_name_property' => 'name',
],
],
],
Fix PR merged into master. This issue is fixed.
Hi! I have fatal error with PHP7.0.18 + ZF2.5.3 + ZF-Commons/zfc-rbac 2.6.2
The issue in \ZfcRbac\Factory\RoleServiceFactory
with this code:
The internal pointer in array $roleProviderConfig is in the end of array, because of that
key($roleProviderConfig)
andcurrent($roleProviderConfig)
return null.There is two options to fix it on place:
I think first is better and it is good practice to get first element of associative array.