Updated to remove error in symfony 2.3