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 by moving code out to be triggered by events. So here is a fairly standard update action in a controller: <?php namespace Acme\DemoBundle\Controller; use Acme\DemoBundle\Form\ProductType; use Sensio\Bundle\Frame