diff --git a/core/core.services.yml b/core/core.services.yml
index f5ed5db..63c2a11 100644
--- a/core/core.services.yml
+++ b/core/core.services.yml
@@ -738,6 +738,11 @@ services:
     tags:
       - { name: event_subscriber }
     arguments: ['@path.alias_manager', '@path_processor_manager']
+  authentication_subscriber:
+    class: Drupal\Core\EventSubscriber\AuthenticationSubscriber
+    tags:
+      - { name: event_subscriber }
+    arguments: ['@authentication']
   finish_response_subscriber:
     class: Drupal\Core\EventSubscriber\FinishResponseSubscriber
     tags:
@@ -959,11 +964,6 @@ services:
     class: Drupal\Core\Authentication\AuthenticationManager
     tags:
       - { name: service_collector, tag: authentication_provider, call: addProvider }
-  authentication_subscriber:
-    class: Drupal\Core\EventSubscriber\AuthenticationSubscriber
-    tags:
-      - { name: event_subscriber }
-    arguments: ['@authentication']
   current_user:
     class: Drupal\Core\Session\AccountProxy
     arguments: ['@authentication', '@request_stack']
