your change is not equivalent. It would always create a legacy paginator, which would be unused for all Doctrine 2.2+ users, thus wasting resources for most users