Converted to Symfony2