I have installed the bundle on Symfony4 but there is a bug :
I can't register because it says that the csrf token isn't valid, but it's work on login and I can create users from the terminal.
I precise that the token is sent with the form and the controller returns FALSE on isvalid() function
How did you do that? Currently, the bundle's version constraints are not compatible with Symfony 4.
How did you do that? Currently, the bundle's version constraints are not compatible with Symfony
Why not? My projet is on Symfony4 and i need this bundle
Well, what we mean is, how did you install the bundle then ? The support of SF 4 has not been merged in it yet
I did it with composer and there were any problem, but this is not my question but why the csrf is not working on register while it's working on login and groups
Without knowing what exactly you did we are not able to help you.
I just overrides the registration form
I installed to the bundle FOS user but I can't to the configuration because the cofiguration files are not the same as symfony 3!!
how did you configurated it ? even the login page i didn't do it.
how did you configurated it ? even the login page i didn't do it.
@asmaHemden
If I remember well, you just need to add the bundle in the composer.json manually, then you do a composer install and add the fos configuration part in the framework.yaml instead of config.yml (Symf 3), other configurations still the same
@asmaHemden Here https://github.com/FriendsOfSymfony/FOSUserBundle/issues/2562#issuecomment-333575348 you have an example how to configure it in flex.
When will FOSUserBundle be completely compatible with symfony 4 out of the box? I'm dying to use it.
I don't think there will be a version on 4.0, only if there will be a long maintained version like 3.4
@Tchekda really? oh damn, that's unexpected. I thought FOSUserBundle was the most popular bundle of symfony so to me it made sense that they would keep it up to date with the most recent versions of symfony.
Anyhow, is there a good alternative to FOSUserBundle for symfony 4?
Without any version for Symfony4, I'm also wondering if a good alternative exists... Or at least good article to create mine.
How can I override form with Symfony 4? I followed the guide with the old version, but it doesn't work.


I got this error: "Neither the property "firstname" nor one of the methods "firstname()", "getfirstname()"/"isfirstname()"/"hasfirstname()" or "__call()" exist and have public access in class "Symfony\Component\Form\FormView"."
@mirkorap have you checked https://symfony.com/doc/master/form/create_form_type_extension.html ?
Check this article about how to install and configure FOSUserBundle on Symfony 4
https://vfac.fr/blog/how-install-fosuserbundle-with-symfony-4
Most helpful comment
@Tchekda really? oh damn, that's unexpected. I thought FOSUserBundle was the most popular bundle of symfony so to me it made sense that they would keep it up to date with the most recent versions of symfony.
Anyhow, is there a good alternative to FOSUserBundle for symfony 4?