Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

SymfonyCasts

FOSUserBundle FTW!

via SymfonyCasts

Overview

NOTE: I now recommend to not use FOSUserBundle. Instead, use MakerBundle: it has commands to generate a User class, login form, registration form and more.

Ready to master Symfony's most popular bundle! FOSUserBundle can be a great way to get your application up and running quickly, giving you a User entity, registration pages, reset password and more. But to make it really shine, you need to integrate it into your layout, customize its text, tweak its forms and hook into its actions!

In this tutorial, you'll learn how to:

  • Install & setup FOSUserBundle
  • Understanding and configuring security
  • Using your own base layout
  • Overriding templates
  • Customizing and extending the forms
  • Removing the username field entirely
  • Updating any text via translations
  • Creating an event subscriber to do things before/after registration (or anything else)
  • Using Guard Authentication with FOSUSerBundle

Let's rock!

Syllabus

  • Rock some FOSUserBundle!
  • Security Setup
  • Dynamic Roles and Canonical Fields
  • Layout and Template Customization
  • Customizing Text via Translations
  • Customizing the Forms
  • My Users don't have a Username!
  • Customize everything with Events
  • TargetPathTrait: Redirect to Previous Page
  • FOSUserBundle

Taught by

Ryan Weaver

Reviews

Start your review of FOSUserBundle FTW!

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.