SF2C2 | Mastering Symfony2

  • Take the advanced usages and tools of the Symfony framework into your hands. Our experts will also teach you the Symfony best practices regarding configuration, automated testing, database handling or caching strategies. This training workshop is available online. Contact us and we'll tell you how.
  • Prerequisites

    Good knowledge of PHP, Object Oriented Programming and Symfony 2 basics.
  • Goals

    In two days, master most of the best Symfony 2 features like MVC, forms processing, Twig template engine, security and HTTP caching with ESI...

Full program

Dependency Injection & Service Container

  • Understanding the dependency injection principle
  • Getting started with the Symfony service container
  • Listing all built-in Symfony services thanks to the command line tools
  • Registering new custom business services in the dependency injection container
  • Accessing a registered service from the service container
  • Creating and accessing global configuration parameters from the container

Contracing a Quality Insurance with Automated Tests

  • Discovering the tests automation framework PHPUnit
  • Understanding the goals of automating tests (unit and functional tests)
  • Configuring an automated tests suite
  • Designing and executing a unit tests suite
  • Designing and executing a functional tests suite
  • Generating code coverage reports

Interacting with the End User and Forms

  • Designing and processing web forms
  • Automating form rendering with Twig view helpers
  • Customizing form rendering with built-in and custom Twig form themes
  • Configuring form field types as services
  • Applying built-in validation constraint rules on submitted data
  • Applying custom validation constraint rules on submitted data
  • Contextualizing the data validation thanks to validation groups

Restricting Access to Secured Application's Pages

  • Getting started with authentication and authorization principles
  • Securing some application’s pages thanks to a form based authentication strategy
  • Setting up an access control policy based on user’s roles
  • Testing user’s permissions from a controller and a Twig template
  • Registering custom authorization rules thanks to the security « voters »

Improving Performances with HTTP Caching & ESI

  • Getting started with the HTTP caching workflows
  • Discovering the different kind of cache systems
  • Comparing the expiration and validation cache strategies
  • Applying expiration and validation cache constraints to generated web pages
  • Caching page fragments thanks to the ESI technology (« Edge Side Includes »)
  • Installing and configuring the Symfony’s built-in reverse-proxy cache

Querying a Relational Database with Doctrine

  • Discovering the basics of the Doctrine ORM
  • Understanding the concepts of « entities » and « repositories »
  • Automating PHP classes and SQL queries code generation with Doctrine
  • Persisting data to the database thanks to the Doctrine ORM entity manager
  • Fetching data back from the database thanks to Doctrine
  • Building and executing custom SQL queries thanks to the Doctrine Query Builder object

Time program

Day 1

Appreciation of the training

Global average :

  1. Educational rating : N.C
  2. Content rating : N.C
  3. Pace rating : N.C
  • Duration

    2 day(s)
  • Level

    Intermediate
  • Available languages

    French, English, German, Spanish
  • Available countries

    Spain, United States, France, United Kingdom, Germany, Belgium, Switzerland, Worldwide
From €1,290.00
No session scheduled

No session is scheduled for this course. However we organize tailored training courses: contact us for more informations!