-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
Version 4.12.0's requires sonata-project/admin-bundle: 3.76 #1419
Comments
Feel free to provide a PR @dein1984 |
The SonataUser bundle is currently not compatible with the Sonata 4 bundle. You can only use Sonata 3 version, but you can bump the version you use. |
Hi @VincentLanglet I got the same issue as well, |
The combination can be found in the composer.json. One on the main reason is the fact that FosUser is not compatible with symfony 5 |
Hi @VincentLanglet , thank you very much for your quick reply. Thank you |
@zx86496790 config for fos_user to get it starting, because i had a similar problem: fos_user:
firewall_name: main
db_driver: orm
from_email:
address: '%env(MAIL_SENDER)%'
sender_name: 'sender_name'
user_class: 'App\Entity\User\User'
group:
group_class: 'App\Entity\User\Group' |
Hi @Hanmac , thank you for your reply. This time I installed symfony first. and configure fos_user.yaml. this time I got the following error: |
@zx86496790 templating:
engines:
twig |
Hi @Hanmac , after framework.yaml. I searched online and some people say I should use : however when I ran that, i got another error as following: There is no extension able to load the configuration for "fos_user" (in "/fsys1/home/public_html/config/packages/fos_user.yaml"). Looked for namespace "fos_user", found ""framework", "sensio_framework_extra","twig", "web_profiler", "monolog", "debug", "maker", "doctrine", "doctrine_migrations", "security", "twig_extra", "knp_menu", "sonata_doctrine", "sonata_twig", "sonata_form", "sonata_block", "sonata_exporter", "sonata_admin","sonata_doctrine_orm_admin"" in /fsys1/home/public_html/config/packages/fos_user.yaml (which is loaded in resource "/fsys1/home/public_html/config/packages/fos_user.yaml"). did you have this issue before? |
@zx86496790 for me it helped to "composer require" both "sonata-project/user-bundle" and "sonata-project/doctrine-orm-admin-bundle=3.35.0" at the same time |
Hi @Hanmac I got this error when I tried to install
Thank you very much for your help. this version did not give me any errors so far |
Hi @Hanmac , I followed sonatauserbundle 4.x document to configure but got the following error: Have you got this error before? Thank you |
Hi @VincentLanglet , is there any plan to support role and permission in any other way? or if there is any recommendation on some replacement for symfony 5? |
We plan to update this bundle ASAP, any help is welcome. It will take some time... in the meantime you can implement your own solution or use other bundle. I have implemented a bundle (that it does not have the same flexibility as the sonata one) to be able to transition to Symfony 5 and Sonata 4: https://github.com/Runroom/RunroomUserBundle There is a tutorial on the docs of the SonataAdminBundle to implement your own solution too (not sure if it is updated to the new security system tho). |
@jordisala1991 thanks to know about that RunroomUserBundle ... i was recently switched to https://github.com/nucleos/NucleosUserAdminBundle but i might need to find something new again because it did drop php 7.4 support which i am required to use the only problem for me is that it uses email for username, i hope i can overwrite that in my project, also it uses email as unique field |
The 5.x branch is already working with Sonata 4 . Keep in mind it is really unstable and soon it will change more because of the removal of FOSUserBundle. This issue can be closed, because Sonata 4 won't land on SonataUserBundle 4.x |
Hi,
Version 4.12.0 supports PHP8, but it requires sonata-project/admin-bundle 3.76 which only supports PHP7.3. Can the dependency on sonata-project/admin-bundle be changed to support version 4.0.1 please? Thanks.
The text was updated successfully, but these errors were encountered: