Course Objectives

In this two-day ‘Web Development with Symfony Advanced course’, you will learn advanced skills such as integrating Symfony services, controlling and scripting Symfony from the command line, security, and creating event-driven applications.

 

Target Audience

  • Experienced Web Developers

Pre-requisites

  • Basic knowledge of PHP and object-oriented programming

Learning Methodology

The course offers a balanced mix of theory and practice in a world-class learning environment. Benefit from direct interaction with our project experienced trainers and other students to maximise your learning success.

 

Agenda

  • Introduction to Dependency Injection and Symfony Services
  • The optimal way to get the list of available services
  • Using auto-wiring to inject dependencies onto a constructor
    • constructor
    • Setter
    • property
  • Checking the custom configuration of your services
  • Services and environment variables

  • Console commands: Creating interactive commands and batch commands
  • Writing your own commands
  • Using helpers from SymfonyStyle
  • Declaring and handling new options and arguments in your command

  • Introduction to authentication and authorisation
  • Creating an authenticator with Security
  • Checking the roles of users
  • Creating custom voters

  • Introduction to events
  • Sending events in the Symfony project
  • Creating subscriptions to declare listeners
  • Important built-in events