fix symfony 2.3 deprecated code