Fosuserbundle: symfony 5.0

Created on 22 Nov 2019  路  13Comments  路  Source: FriendsOfSymfony/FOSUserBundle

Do you plan to support symfony 5?

Most helpful comment

As FOSUserBundle is no longer maintained, it is not recommended to use it in future projects and Symfony 5. If you want more arguments on why not to use it, take a look at this:
https://jolicode.github.io/fosuserbundle-conf/#/

Of course you need fast and easy user validation and authentication, but there are other options.

Your safest bet is to implement user authentication on your own using Symfony's documentation on Security:
https://symfony.com/doc/current/security.html

_It uses MakerBundle, like user @01e9 mentioned._

All 13 comments

Most likely it is no longer maintained:
https://github.com/FriendsOfSymfony/FOSUserBundle/issues/2874

Also in my case I ended up copying the bundle and moving it to my own project and removing the deprecations myself.

I ended up forking it also. If anyone needs a diff of the changes: https://github.com/FriendsOfSymfony/FOSUserBundle/compare/master...jethrohicks:bugfix

@jethrohicks maybe you could create PR to this repo?

@jethrohicks im interested in this as well. or maybe some instructions on how to install your fork into my project :)

Hi @jethrohicks, I want to migrate to Symfony 5 and im insterested in how to install your fork into my project too. Can anyone help us?
Thank You

_I started using this solution with MakerBundle._

@Caedendi @argoitzT
add to composer.json

    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/jethrohicks/FOSUserBundle.git"
        }
    ],

and execute command
composer require friendsofsymfony/user-bundle "dev-bugfix"
or add to composer.json

     "require": {
         "friendsofsymfony/user-bundle": "dev-bugfix"
     }

Wow @rumours86 .
This works for me!! I plan to use MakerBundle but I have no time to make changes for now.
Then this solution saves me a lot of time.
Thank you very much

As FOSUserBundle is no longer maintained, it is not recommended to use it in future projects and Symfony 5. If you want more arguments on why not to use it, take a look at this:
https://jolicode.github.io/fosuserbundle-conf/#/

Of course you need fast and easy user validation and authentication, but there are other options.

Your safest bet is to implement user authentication on your own using Symfony's documentation on Security:
https://symfony.com/doc/current/security.html

_It uses MakerBundle, like user @01e9 mentioned._

In my project I use Twig v.3.0.4. Than I try install composer require friendsofsymfony/user-bundle "dev-bugfix" get error:

Problem 1 - friendsofsymfony/user-bundle dev-bugfix requires twig/twig ^1.28 || ^2.0 -> satisfiable by twig/twig[1.x-dev, 2.x-dev, v1.28.0, v1.28.1, v1.28.2, v 1.29.0, v1.30.0, v1.31.0, v1.32.0, v1.33.0, v1.33.1, v1.33.2, v1.34.0, v1.34.1, v1.34.2, v1.34.3, v1.34.4, v1.35.0, v1.35.1, v1.35.2, v1.35.3, v1.35.4, v1.36.0, v1.37.0, v1.37.1, v1.38.0, v1.38.1, v1.38.2, v1.38.3, v1.38.4, v1.39.0, v1.39.1, v1.40.0, v1.40.1, v1.41.0, v1.42.0, v1.42.1, v1.42.2, v1.42.3, v1.42.4, v1.42.5, v1.43.0, v2.0.0, v2.1.0, v2.10.0, v2.11.0, v2.11.1, v2.11.2, v2.11.3, v2.12.0, v2.12.1, v2.12.2, v2.12.3, v2.12.4, v2.12.5, v2.13.0, v2.2.0, v2.3.0, v2.3.1, v2.3.2, v2.4.0, v2.4.1, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.5.0, v2.6.0, v2.6.1, v2.6.2, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.8.0, v2.8.1, v2.9.0] but these conflict with your requirements or minimum-stability. - friendsofsymfony/user-bundle dev-bugfix requires twig/twig ^1.28 || ^2.0 -> satisfiable by twig/twig[1.x-dev, 2.x-dev, v1.28.0, v1.28.1, v1.28.2, v1.29.0, v1.30.0, v1.31.0, v1.32.0, v1.33.0, v1.33.1, v1.33.2, v1.34.0, v1.34.1, v1.34.2, v1.34.3, v1.34.4, v1.35.0, v1.35.1, v1.35.2, v1.35.3, v1.35.4, v1.36.0, v1.37.0, v1.37.1, v1.38.0, v1.38.1, v1.38.2, v1.38.3, v1.38.4, v1.39.0, v1.39.1, v1.40.0, v1.40.1, v1.41.0, v1.42.0, v1.42.1, v1.42.2, v1.42.3, v1.42.4, v1.42.5, v1.43.0, v2.0.0, v2.1.0, v2.10.0, v2.11.0, v2.11.1, v2.11.2, v2.11.3, v2.12.0, v2.12.1, v2.12.2, v2.12.3, v2.12.4, v2.12.5, v2.13.0, v2.2.0, v2.3.0, v2.3.1, v2.3.2, v2.4.0, v2.4.1, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.5.0, v2.6.0, v2.6.1, v2.6.2, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.8.0, v2.8.1, v2.9.0] but these conflict with your requirements or minimum-stability. - friendsofsymfony/user-bundle dev-bugfix requires twig/twig ^1.28 || ^2.0 -> satisfiable by twig/twig[1.x-dev, 2.x-dev, v1.28.0, v1.28.1, v1.28.2, v1.29.0, v1.30.0, v1.31.0, v1.32.0, v1.33.0, v1.33.1, v1.33.2, v1.34.0, v1.34.1, v1.34.2, v1.34.3, v1.34.4, v1.35.0, v1.35.1, v1.35.2, v1.35.3, v1.35.4, v1.36.0, v1.37.0, v1.37.1, v1.38.0, v1.38.1, v1.38.2, v1.38.3, v1.38.4, v1.39.0, v1.39.1, v1.40.0, v1.40.1, v1.41.0, v1.42.0, v1.42.1, v1.42.2, v1.42.3, v1.42.4, v1.42.5, v1.43.0, v2.0.0, v2.1.0, v2.10.0, v2.11.0, v2.11.1, v2.11.2, v2.11.3, v2.12.0, v2.12.1, v2.12.2, v2.12.3, v2.12.4, v2.12.5, v2.13.0, v2.2.0, v2.3.0, v2.3.1, v2.3.2, v2.4.0, v2.4.1, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.5.0, v2.6.0, v2.6.1, v2.6.2, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.8.0, v2.8.1, v2.9.0] but these conflict with your requirements or minimum-stability. - Installation request for friendsofsymfony/user-bundle dev-bugfix -> satisfiable by friendsofsymfony/user-bundle[dev-bugfix]. Installation failed, reverting ./composer.json to its original content.

it is possible to fix? I'm not pro programmer... Is it generally compatible with twig 3?

Has someone written migration instructions from this bundle to the recommended way of using MakerBundle?

What is the latest supported version? I think it would be nice to write that into the README file so people don't have to search for this issue.

What is the latest supported version? I think it would be nice to write that into the README file so people don't have to search for this issue.

On 5.1.10 still work, but on 5.2 it doesn't work anymore.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DeveloperSlope3 picture DeveloperSlope3  路  5Comments

sinner picture sinner  路  3Comments

flik picture flik  路  4Comments

Dine90 picture Dine90  路  5Comments

soullivaneuh picture soullivaneuh  路  6Comments