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
Disable group support in FOSUserBundle #999
Comments
Hmm so this parameter should be nullable? I know the sf DIC supports nullable services, but does it support nullable parameters? |
It seems yes but only with XML declaration: https://symfony.com/doc/current/service_container/optional_dependencies.html |
Good thing we use XML then |
I think the group manager shouldn't even be defined in that case, which would mean splitting this file:
And loading it conditionally, based on the existence of the parameter. Not sure what other problem could arise after that. Would you like to give it a try @lukepass ? |
Hello, I am embarassed but I never forked and edited a GitHub project :) Thanks. |
Don't be embarrassed, it's OK, props for willing to do it. I'm in the train right now, so I'll give more details later, but first step would be to figure out if this can work, which you can assess without any forking, just by applying the suggestion on the files inside your |
while doing a way to disable the GroupManager, can we talk about if we really need different manager for both Entity and Document or if a another way to optimise that? if we need to do something there, why not use service decoration? |
Hello, I got the same issue, I want to disable the BaseGroup entity from Sonata. Is it possible ? |
Not for now Im afraid. Feel free to provide a PR |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
In the guide for FOS User Bundle there is an option to disable groups:
https://symfony.com/doc/current/bundles/FOSUserBundle/groups.html
There is also a note:
I tried to disable it using SonataUserBundle but it complains about a missing parameter:
Is there a solution for it?
Environment
Symfony 2.8
Composer packages
PHP version
The text was updated successfully, but these errors were encountered: