Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

Symfony Guard - You don't need FOSUserBundle

Marko Kunic
September 28, 2017

Symfony Guard - You don't need FOSUserBundle

Talk about Symfony Guard and how we do not need FOSUserBundle, the talk was presented at my company. The code can be found here: https://github.com/kunicmarko20/guard-talk-example, if you need any kind of help feel free to ping me on twitter @kunicmarko20. Talk is inspired by great tutorials at https://knpuniversity.com that @weaverryan is creating, be sure to check them out.

Marko Kunic

September 28, 2017
Tweet

More Decks by Marko Kunic

Other Decks in Programming

Transcript

  1. @kunicmarko20 FOSUserBundle Pros • Login Page • Reset Password •

    Last Login Cons • Login Page • Reset Password • Username field • Overwrite everything
  2. @kunicmarko20 SonataUserBundle Pros • User Admin Class • Admin Login

    Page • Role FormType Cons • Wrapper around FOSUserBundle • Adds 22 fields to your User Entity • User Profile Menu and Dashboard page
  3. @kunicmarko20 In the rest of the talk, my focus will

    be on replacing SonataUserBundle and implementing Symfony Guard because we are using SonataAdminBundle and a lot of people just go with SonataUserBundle as it is easier. While removing SonataUserBundle we will basically be removing FOSUserBundle as well.
  4. @kunicmarko20 The “new” Symfony Authentication component • Since Symfony 2.8

    (2015) • Easy to implement • Customize success/failure behavior • Customize error messages • Customize how you load user
  5. @kunicmarko20 What do we need? • User Entity • Custom

    User Provider (optional) • Login Form Type • Controller • Guard Authenticator