Avoiding Setter Injection
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…
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…
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…
Many of the bundles that are part of the Symfony2 framework and the available third party bundles are effectively integration layers between a library and the framework. For example: The OldSoundRabbitMqBundle integrates the php-amqplib library…
A quick post looking avoiding tying a Symfony2 application to the environment and instead varying config per environment. It's tempting to access the env parameter from within an application in order to make decisions. A…
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…
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…