-
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 thingsStep through the HttpKernel::handle() method that's used in Symfony and Drupal 8See where event like kernel.request, kernel.response and others are dispatchedLearn about request attributes and the magic they give usFind out what is a sub-request and how to handle itCreate your own sub-request manually
Overview
Syllabus
-
- 01. Interrupt Symfony with an Event Subscriber
- 02. HttpKernel::handle() The Heart of Everything
- 03. kernel.request and the RouterListener
- 04. Finding and Instantiating the Controller
- 05. kernel.controller Event & Controller Arguments
- 06. The kernel.view Event
- 07. Finishing with kernel.response and kernel.exception
- 08. Symfony Magic: Replace the _controller
- 09. Making an Argument Available to All Controllers
- 10. What about Sub Requests?
- 11. How Sub-Requests Work