Change to work with symfony 2.3