fix symfony 2.2 compatibility(use deprecated function call)