Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no factory to instantate a RoleProviderInterface service #45

Closed
visto9259 opened this issue May 22, 2024 · 2 comments · Fixed by #46
Closed

There is no factory to instantate a RoleProviderInterface service #45

visto9259 opened this issue May 22, 2024 · 2 comments · Fixed by #46
Labels
bug Something isn't working

Comments

@visto9259
Copy link
Member

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 visto9259 added the bug Something isn't working label May 22, 2024
@visto9259
Copy link
Member Author

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
Copy link
Member Author

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

visto9259 added a commit to visto9259/LmcRbac that referenced this issue May 23, 2024
…eServiceFactory creates Role Provider from config options.
@visto9259 visto9259 moved this from 🆕 New to 📋 To Do in LmcRbac Development May 23, 2024
@visto9259 visto9259 moved this from 📋 To Do to 🏗 In progress in LmcRbac Development May 23, 2024
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in LmcRbac Development May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant