SF5MASTER | Mastering Symfony 5

  • This training, which follows the course "Getting started with Symfony 5", will help you acquire the key concepts of a whole project. SensioLabs University has designed the best Symfony training experience, combining face-to-face and e-learning. In addition to face-to-face training, access to our online review platform for 1 month allows you to combine different learning practices, test your skills, follow your progress and stay in touch with your trainer on throughout the duration of the program.
  • Prerequisites

    Good knowledge of PHP and object oriented programming. Mastery of Symfony 5 fundamentals. See the SF5-START training.
  • Goals

    During these 2 days of training, the objective of this training is to take control of the framework to master its different cogs. You will learn the principle of dependency injection and learn how to use the service registry appropriately and effectively. You will also learn how to interact with the functioning of Symfony via events, and you will learn how to configure an access rights policy on the application. Finally, for a practical approach to Symfony, you will create your own commands to make your developer's life easier.

Full program

Services

  • Introduction to dependency injection and Symfony services
  • Use the best way to get the list of available services to deal with
  • Use the autowiring to inject dependencies on a constructor, a setter or a property
  • Check custom configuration of your services
  • Services and environment variables

Console

  • About console commands, and how to create interactive commands, batch commands…
  • Write your own commands
  • Use helpers from SymfonyStyle to get life easier
  • Declare and handle new options and arguments in your command

Security

  • Introduction to Authentication and Authorization in a Symfony project
  • Create your own authenticator with Guard
  • Check the users’ roles to let them access a given resource
  • Create custom voters to handle rare situations requiring a PHP check

Events

  • Introduction to events and how to dispatch them in a Symfony project
  • Create subscribers to declare listeners
  • Important built-in events
  • Try an alternative configuration to declare listeners without subscribers