LM-Commons / LmcRbac

Role-based access control module to provide additional features on top of Laminas\Permissions\Rbac (formerly zfc-rbac)
https://lm-commons.github.io/LmcRbac/
BSD 3-Clause "New" or "Revised" License
7 stars 5 forks source link

There is no factory to instantate a RoleProviderInterface service #45

Closed visto9259 closed 5 months ago

visto9259 commented 5 months ago

The factory for RoleServiceInterface tries to get a RoleProviderInterface service from the container but there is no factory registered in the ServiceManager for RoleProviderInterface.

visto9259 commented 5 months ago

LmcRbac options has the 'role_provider' key to configure the Role Provider to use. The factory for RoleProviderInterface should use this config to instantiate the Role Provider.

visto9259 commented 5 months ago

The solution is for the RoleServiceFactory to get the Role Provider defined by the role_provider key.