Compatibilit with Symfony 2.4