Symfony2.0 sample code for review