Symfony tutorials, tips and hidden gems

Below are a number of tutorial and informative articles for the Symfony framework. Hopefully they will be useful in your Symfony journey. If you have any questions, please feel free to comment on the specific post and I will do my best to respond in a timely manner.

Jan 23rd 2015

How to use the functionality available to a compiler pass to manipulate services. A tutorial on a real application of a Symfony2 compiler pass

Author: Luke Rotherfield

December 8th 2014

Unpacking how compiler passes work in Symfony2, how they enable us to manipulate service definitions and looking at some real world examples

Author: Luke Rotherfield

November 18th 2014

Get the twig environment in a twig extension without injecting the whole container. Render twig templates from a twig extension correctly

Author: Luke Rotherfield

August 1st 2013

Instructions on installing and using my Symfony2 Form component addition that allows entities to be rendered as hidden fields in forms

Author: Luke Rotherfield

April 23rd 2013

Quick post explaining how to order an associated collection on a doctrine entity in Symfony 2 using an annotation

Author: Luke Rotherfield

April 23rd 2013

Easy to follow Symfony2 tutorial walking through creating a service and using it in a Symfony2 application

Author: Luke Rotherfield

April 13th 2013

I have created a component that you can install via composer to add a hidden entity form type to your symfony2 project, here is the the post about it

Author: Luke Rotherfield

March 13th 2013

This is part 2 of the Symfony2 tutorial making a flash notification bundle to learn the basics of services, dependency injection and twig extensions

Author: Luke Rotherfield

December 18th 2012

This issue occurs when Symfony2 tries to serialize an entity, often in a relationship when an entity has an ArrayCollection. Simple answer: Change private fields to protected so they are not hidden from the serializer!

Author: Luke Rotherfield