deprecated in symfony 2.2