diff --git a/core/core.services.yml b/core/core.services.yml
index a7a2b3b..abd96e3 100644
--- a/core/core.services.yml
+++ b/core/core.services.yml
@@ -471,6 +471,7 @@ services:
   app.root.factory:
     class: Drupal\Core\AppRootFactory
     arguments: ['@kernel']
+    public: false
   controller_resolver:
     class: Drupal\Core\Controller\ControllerResolver
     arguments: ['@class_resolver']
@@ -488,7 +489,7 @@ services:
     arguments: ['@event_dispatcher', '@controller_resolver', '@request_stack']
   http_negotiation.format_negotiator:
     class: Drupal\Core\ContentNegotiation
-    private: true
+    public: false
   http_middleware.negotiation:
     class: Drupal\Core\StackMiddleware\NegotiationMiddleware
     arguments: ['@http_negotiation.format_negotiator']
