makes implementation more BC with older symfony versions