Let the doctrine repository registration compiler pass in the before optimization compilation step