Caching It is time to take a look at the “most important piece of code in the HttpKernel component”, as Fabien Potencier himself puts it – HttpKernelInterface. Among other things this interface supports native HTTP-Caching, the feature we’ll be exporing in this episode. Implement the Interface First off we’ll refactor…
Building Hooks Drupal-Style We’ve gone a long way to build a nicely decoupled and object-oriented Framework. One thing is missing though – to add the possibility to extend our Framework with the arbitrary code modules. In this episode we are going to build a “module” that will hook into the…
Preamble / Kudos In the preparation of Episode 9 of my infamous screencast series how to build a PHP Framework using Symfony2 Components I have realized, that I should take a pause and explain a very important design pattern implemented there – the Observer. So I decided to make a…
Save you Easter – Write Tests! In this episode of the series we are going to ensure the durability of our code by including one of the most important components of the modern application design – Unit Testing. Configuration One of the advantages in using Symfony2 Components is their native…