compatibility symfony 2.4