Migration to Symfony 2