[HttpFoundation] added a way to override the Request class