This tutorial has a new version, check it out!

Journey to the Center of Symfony: HttpKernel Request-Response

1:02:30

What you'll be learning

// composer.json
{
    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.6.x-dev", // 2.6.x-dev
        "doctrine/orm": "~2.2,>=2.2.3", // v2.4.6
        "doctrine/doctrine-bundle": "~1.2", // v1.2.0
        "twig/extensions": "~1.0", // v1.2.0
        "symfony/assetic-bundle": "~2.3", // v2.5.0
        "symfony/swiftmailer-bundle": "~2.3", // v2.3.7
        "symfony/monolog-bundle": "~2.4", // v2.6.1
        "sensio/distribution-bundle": "~3.0", // v3.0.9
        "sensio/framework-extra-bundle": "~3.0", // v3.0.3
        "incenteev/composer-parameter-handler": "~2.0", // v2.1.0
        "hautelook/alice-bundle": "~0.2" // 0.2
    },
    "require-dev": {
        "sensio/generator-bundle": "~2.3" // v2.4.0
    }
}

Let's not just use Symfony, let's conquer it! In this series, you and I will journey to the center of Symfony by ripping open the source code, adding debug statements and seeing what really happens between the request and the response. It's as geeky-awesome as it sounds.

Besides dinosaurs, expect to do the following on our adventure:

  • Create an event listener that does amazing things
  • Step through the HttpKernel::handle() method that's used in Symfony and Drupal 8
  • See where event like kernel.request, kernel.response and others are dispatched
  • Learn about request attributes and the magic they give us
  • Find out what is a sub-request and how to handle it
  • Create your own sub-request manually

Your Guides

Ryan Weaver Leanna Pelham

Buy Access

Questions? Conversation?