some adaptations to new symfony APIs