A while ago I had a twitter discussion with Igor Wiedler and Matthias Noback about setter injected dependencies being mutable. When using objects as services in an application then we do not want them to…

  • dependency injection , php , symfony2

In my previous post on separating bundles from libraries in Symfony2 applications I said I would follow this up with more details. I have yet to write that post, in the meantime some links to…

  • ddd , php , symfony2

In my last post I looked at the end at creating a Twig extension that would return the template to extend in order to pull the logic for the decision out of the template. The…

  • config , dependency injection , php , symfony2 , Twig

This post is a few notes to follow up on some of the responses to my previous post on reusing inner Twig templates for full page responses and ajax responses. One clarification to make, as…

  • php , symfony2 , Twig

A quick look at one way to use the same controller action and Twig template (or just template) for displaying a full page and also just the inner content for an Ajax request in a…

  • php , symfony2 , Twig

In this post I am going to look at some techniques for cleaning up Symfony2 controller actions. Some of this by using some of the extras that are part of the standard distribution and some…

  • dependency injection , doctrine , doctrine2 , php , symfony2