Make it work with Symfony 2.3