From 4761995e1af0bd1934eb2f12f97ae81a32d8c81f Mon Sep 17 00:00:00 2001
From: catch <6915-catch@users.noreply.drupalcode.org>
Date: Sun, 12 Jan 2025 18:05:42 +0000
Subject: [PATCH] Issue #3498992 by nicxvan, alexpott: Remove class_loader in
 drupal_check_profile

---
 core/includes/install.inc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/core/includes/install.inc b/core/includes/install.inc
index be9fc6c245d0..c3f53ec7f599 100644
--- a/core/includes/install.inc
+++ b/core/includes/install.inc
@@ -613,8 +613,6 @@ function drupal_check_profile($profile) {
         require_once $install_file;
       }
 
-      \Drupal::service('class_loader')->addPsr4('Drupal\\' . $module . '\\', \Drupal::root() . "/$module_path/src");
-
       if (function_exists($function)) {
         $requirements = array_merge($requirements, $function('install'));
       }
-- 
GitLab