Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DebugClassLoader.php

function DebugClassLoader::disable

Disables the wrapping.

File

vendor/symfony/error-handler/DebugClassLoader.php, line 210

Class

DebugClassLoader
Autoloader checking if the class is really defined in the file found.

Namespace

Symfony\Component\ErrorHandler

Code

public static function disable() : void {
    if (!\is_array($functions = spl_autoload_functions())) {
        return;
    }
    foreach ($functions as $function) {
        spl_autoload_unregister($function);
    }
    foreach ($functions as $function) {
        if (\is_array($function) && $function[0] instanceof self) {
            $function = $function[0]->getClassLoader();
        }
        spl_autoload_register($function);
    }
}
RSS feed
Powered by Drupal