add missing optional dependency in HttpFoundation